TypeScript monorepo template with pnpm, turbo, vitest, husky, and changesets.
# Install dependencies
pnpm install
# Enable husky
pnpm prepare| Command | Description |
|---|---|
pnpm build |
Build all packages |
pnpm dev |
Run dev mode with watch |
pnpm lint |
Run ESLint |
pnpm typecheck |
Run TypeScript type checking |
pnpm test |
Run vitest |
pnpm release |
Version bump with changesets |
pnpm publish |
Publish packages to npm |
- Create a new directory in
packages/ - Add a
package.jsonwith the required scripts - Add a
tsconfig.jsonextending the root config
# Create a changeset
pnpm changeset add
# Version bump
pnpm release
# Publish (CI will do this on tag push)
pnpm publishPre-commit hooks run automatically:
pnpm turbo lintpnpm turbo typecheckpnpm turbo test