Connector CLI v1.13.0 — multi-file connector compilation
A new version of the Connector CLI adds multi-file TypeScript compilation and expands watch coverage across the connector project.
✨ New & Improved
Multi-file connector projects
You can split connector logic across local .ts modules. The entry point remains connector.ts; the CLI bundles relative imports into a single out/connector.js for publish, test, and debug — the same contract as before.
Allowed imports:
- Relative / local project
.tsfiles @chili-publish/studio-connectors
Any other npm package is rejected at compile time with an actionable error.
See Project structure for the full layout.
Watch covers all project .ts files
connector-cli build -w and connector-cli debug recompile when any project .ts file changes (not only connector.ts). Under build -w, a failed rebuild logs diagnostics and keeps watching instead of exiting.
ℹ️ Info for existing projects
If you add helper .ts files to an older project that still has:
widen it so the editor sees the new modules, for example:
Aligning compilerOptions with a project from connector-cli new (notably moduleResolution: "Bundler" and noEmit: true) is not required for this release — existing projects keep working as they do today without that change. It is still worth doing so your editor/tsc setup matches what the CLI actually uses when it builds. If options differ or tsconfig.json is missing, the CLI falls back to built-in TypeScript settings; with --verbose it reports the skip reason. Matching the scaffold also silences that verbose warning.
New projects from connector-cli new already use the widened include and aligned compilerOptions.