Reproduction
From a clean npm project:
tmp=$(mktemp -d)
cd "$tmp"
npm init -y >/dev/null
npm install --no-audit --no-fund @zds-ai/cli@0.1.10
./node_modules/.bin/zai-cli --help
Actual behavior
The CLI exits before printing help:
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'js-yaml' imported from .../node_modules/@zds-ai/cli/dist/utils/settings-manager.js
Expected behavior
zai-cli --help should print the help text and exit successfully after a clean install.
Root cause
src/utils/settings-manager.ts imports js-yaml, but js-yaml is not listed as a runtime dependency in the published package's package.json. It appears only in the lockfile as a dev/transitive dependency, so consumers do not receive it.
Environment
- macOS 15.7.2
- Node v25.8.2
- npm 11.11.1
- package:
@zds-ai/cli@0.1.10
Reproduction
From a clean npm project:
Actual behavior
The CLI exits before printing help:
Expected behavior
zai-cli --helpshould print the help text and exit successfully after a clean install.Root cause
src/utils/settings-manager.tsimportsjs-yaml, butjs-yamlis not listed as a runtime dependency in the published package'spackage.json. It appears only in the lockfile as a dev/transitive dependency, so consumers do not receive it.Environment
@zds-ai/cli@0.1.10