@klyper/cli
v0.3.0
Published
Command line tools for the Klyper monorepo.
Downloads
23
Readme
@klyper/cli
Command line tools for managing the Klyper monorepo.
Commands
npm run build --workspace @klyper/cli
npm run check --workspace @klyper/cli
npm run lint --workspace @klyper/cli
npm test --workspace @klyper/clibuild uses Rollup for the package output. check runs TypeScript without emitting files.
Create a Package
Create a new package template:
npm exec klyper create package utilsAlternative syntax:
npm exec klyper package create utilsThe command creates packages/utils with:
package.jsontsconfig.jsonREADME.mdsrc/index.tssrc/index.test.ts
The generated package.json follows the public package convention used by the
monorepo:
mainpoints to the CommonJS bundle at./dist/index.cjsmoduleandexports.importpoint to the ESM bundle at./dist/index.jstypesandexports.typespoint to./dist/index.d.tsexports.requirepoints to the CommonJS bundlesideEffectsisfalseprepublishOnlyrunsnpm run build && npm test
The root build runs each package through npm workspaces, so new packages do not need root TypeScript project references.
Use a custom scope:
npm exec klyper create package auth --scope @klyper