Loading...
Loading...
Standardize, build, pack, verify, version, and publish TypeScript npm packages with Bun. Use when asked to set up, prepare, test, publish, or release an npm package, npm-distributed TypeScript tool, or package monorepo.
npx skill4agent add andrueandersoncs/skills npm-publish-tool<package-root>/
src/
index.ts
cli.ts # CLI packages only
dist/ # generated JavaScript and declarations
package.json
bun.lock
README.md
LICENSEpackageManagerbun.lock.d.tsdist/exportstypestypesdist/index.d.tsfiles: ["dist"]buildprepublishOnlybin#!/usr/bin/env nodepeerDependencies<repo-root>/
package.json # private Bun-workspaces root
bun.lock # the only lockfile
<workspace-dir>/
<package>/ # conforms to layout 1package.jsonprivate: truepackageManagerbun.lockbunbunxbun pm version <version>bun installbun.lockbun install --frozen-lockfilebun runbun run --workspaces <script>bun pm pack.tgztar -tzf.tgzbun addbun publish <generated-tarball>