1.0 KiB
1.0 KiB
Packaging sk-az-tools
Build model
- Source lives in
src/as TypeScript (.ts). - Runtime package is compiled to
dist/usingnpm run build. - Public package entrypoints (
exportsandbin) point todist/**.
Package surface
exportsdefines what consumers can import.filescontrols what is shipped to npm.- Current shipping content is
dist,README.md, andLICENSE.
Development workflow
Build once:
npm run build
Build in watch mode:
npm run build:watch
Smoke check CLI output:
node dist/cli.js --help
Publish checklist
- Run
npm run buildand ensure TypeScript compiles without errors. - Verify package content with
npm pack --dry-run. - Create artifact:
npm pack --pack-destination ./artifacts. - Optionally install the artifact locally and validate CLI/imports.
Tarball usage
Create package tarball:
npm pack --pack-destination ./artifacts
Install from tarball:
npm install ./artifacts/@slawek/sk-az-tools-<version>.tgz