pnpm install
pnpm buildTo test the CLI locally:
pnpm loco-cli <command>pnpm test
pnpm lint
pnpm format:check- 2-space indent, 100 char width, single quotes, semicolons required
- Prefer typed code over
any - No barrel exports; use explicit imports
- Go to Actions → Release workflow
- Click "Run workflow"
- Select version type (patch/minor/major)
The workflow runs tests, bumps the version, publishes to npm (via OIDC trusted publishing), and creates a GitHub Release.
Setup: Configure trusted publishing at https://www.npmjs.com/package/loco-cli/settings by linking to GitHub Actions with workflow release.yml.