Commit 7ac4e2f
committed
fix(cli): bundle js-yaml into CLI dist to prevent ERR_MODULE_NOT_FOUND on npx
## Intent
When the CLI wizard is run via `npx @codemcp/workflows-cli`, the root package
that npx installs does not include js-yaml as a transitive dependency visible at
runtime. The wizard reads .vibe/config.yaml using js-yaml at startup, which
causes an ERR_MODULE_NOT_FOUND crash.
## Key decisions
- Added 'js-yaml' to the noExternal list in tsup.config.ts so it is inlined
into the bundle at build time, making the CLI self-contained regardless of
what the npx install resolution picks up
- js-yaml is already declared in the package's dependencies (so it is present
during the build); this change only affects the output bundling, not the
dependency graph1 parent 6091a1a commit 7ac4e2f
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
13 | 22 | | |
14 | 23 | | |
15 | 24 | | |
0 commit comments