Minimal template for a publishable Node.js + TypeScript package.
- TypeScript library build: source in
lib/, output todist/, ESM ("type": "module") - oxlint: fast linting with JSDoc + import-sort rules
- oxfmt: fast formatting
- Vitest: unit + integration test targets
- Changesets: versioning + changelog-friendly releases
- Node: >= 22
- Package manager:
pnpm
pnpm installpnpm check # lint + format check + typecheck + tests
pnpm check:fix # lint:fix + format:fix + typecheck + tests
pnpm build # emits to dist/pnpm lint # or pnpm lint:fix
pnpm format # or pnpm format:fix
pnpm typecheck
pnpm test
pnpm test:unit
pnpm test:integrationpnpm ci:add # add a changeset
pnpm ci:version # bump versions + update changelog
pnpm ci:publish # publish + push tags