- Node.js
>=20 - npm account with publish access to the package name
- Clean working tree
npm install
npm test
npm run pack:dry
npm run publish:dryReview the dry-run output. The package should contain only:
dist/src/**README.mdREADME.zh-CN.mdCHANGELOG.mdLICENSEpackage.json
The unscoped public context-bridge package name is already owned by another npm package. This project publishes as @mmmjk/context-bridge while keeping the CLI binary name context-bridge.
For patch releases:
npm version patchUse minor or major when public CLI behavior changes incompatibly.
npm publish --access publicAfter publish:
npm view @mmmjk/context-bridge version
npm install -g @mmmjk/context-bridge
context-bridge --help
ctxb --helpprepackrunsnpm run build, sodist/src/**is regenerated before packing.- Do not publish local runtime state such as
.omx/,.omc/,.idea/,data/, or generated.tgzfiles.