Skip to content

Latest commit

 

History

History

README.md

@stacknide/create-package

Scaffold a production-ready TypeScript npm package in seconds.

npm create @stacknide/package my-package
# or
npx @stacknide/create-package my-package
# or
yarn create @stacknide/package my-package
# or
pnpm create @stacknide/package my-package

You'll be prompted for the package name, scope, description, author, and GitHub org — then the generated project is ready to develop, test, and publish.

What you get

Every scaffolded project ships with the full toolchain baked in:

  • tsup — bundles ESM + CJS + .d.ts types.
  • Biome — lint + format.
  • Changesets — versioning & changelogs.
  • Lefthook — pre-commit / pre-push hooks.
  • Yarn 4 workspaces — a package/ (published) + test/ (runtime tests) split.
  • GitHub Actions — PR checks (Biome, tsc, build, test) and a Release workflow that publishes to npm via OIDC trusted publishing (no npm token needed).

After scaffolding

cd my-package
yarn install     # if you skipped auto-install
yarn dev         # watch-build
yarn build
yarn test
yarn bump        # add a changeset before releasing

To enable publishing, add a trusted publisher for your package on npmjs.com pointing at your repo's .github/workflows/changeset-publish.yml.

Non-interactive

Pass the target directory as an argument to skip the first prompt:

npx @stacknide/create-package ./packages/my-lib