Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 788 Bytes

File metadata and controls

23 lines (19 loc) · 788 Bytes

CLI Publishing

Package is configured as a CLI tool:

  • Binary name: mcpmc
  • Executable: build/index.js
  • Global install: npm install -g @gerred/mcpmc
  • Required files included in npm package:
    • build/index.js (executable)
    • README.md
    • LICENSE
    • package.json

The build script makes the output file executable with chmod +x. The shebang line #!/usr/bin/env node ensures it runs with Node.js when installed globally.

Publishing Process

  1. Run tests and build: bun test && bun run build
  2. Bump version: npm version patch|minor|major
  3. Push changes: git push && git push --tags
  4. Publish: npm publish --otp=<code>
    • Requires 2FA authentication
    • Get OTP code from authenticator app
    • Package will be published to npm registry with public access