Publish package to npm registry after building with Bun.
Publishes packages to npm registry after building with Bun, with dry-run support and scoped package detection.
/plugin marketplace add laurigates/claude-plugins/plugin install typescript-plugin@lgates-claude-pluginsbun/Publish package to npm registry after building with Bun.
--dry-run: Preview publish without executing--access: Access level (public or restricted)--provenance: Enable supply chain provenance signingDetect package configuration:
cat package.json | jq '{name, version, publishConfig, bin, files, scripts: {prepublishOnly: .scripts.prepublishOnly}}'
# Type check
bun run tsc --noEmit 2>&1 | head -20
# Build
bun run build
# Verify tarball contents
npm pack --dry-run
Dry run (default for first attempt):
npm publish --dry-run {{ "--access " + ACCESS if ACCESS }}
Actual publish:
# Standard package
npm publish {{ "--access " + ACCESS if ACCESS }} {{ "--provenance" if PROVENANCE }}
# Scoped package (auto-detect from name starting with @)
npm publish --access public {{ "--provenance" if PROVENANCE }}
If package.json name starts with @:
--access public unless explicitly restrictedpublishConfig.access is not set in package.jsonnpm view <package> versionnpm install <package>402 Payment Required:
--access public for public registrypublishConfig.access: "public" to package.jsonMissing authentication:
npm login to authenticateNPM_TOKEN environment variable