Skip to content

fix(cli): bundle js-yaml into CLI dist#291

Merged
mrsimpson merged 1 commit into
mainfrom
fix/cli-bundle-js-yaml
Jun 27, 2026
Merged

fix(cli): bundle js-yaml into CLI dist#291
mrsimpson merged 1 commit into
mainfrom
fix/cli-bundle-js-yaml

Conversation

@mrsimpson

Copy link
Copy Markdown
Collaborator

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 graph

…D 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 graph
@mrsimpson mrsimpson merged commit 7ac4e2f into main Jun 27, 2026
3 checks passed
@mrsimpson mrsimpson deleted the fix/cli-bundle-js-yaml branch June 27, 2026 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant