ts-package-template
TypeScript package template with dual CJS/ESM builds, testing, linting, and CI.
Last synced:
Template metadata
README
ts-package-template
A minimal TypeScript package template with dual CJS/ESM output.
Features
- TypeScript with strict mode
- Dual CJS/ESM output via pkgroll
- vitest for testing
- oxlint for linting
- oxfmt for formatting
- CI via shared workflows from matt-riley-ci
Getting started
pnpm install
pnpm test
pnpm build
Scripts
| Script | Description |
|---|---|
build |
Build with pkgroll |
test |
Run tests |
test:watch |
Run tests in watch mode |
lint |
Lint with oxlint |
format |
Format with oxfmt |
format:check |
Check formatting |