TypeScript monorepo template with vitest, turbo, husky, and changesets
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 |
packages/package.json with the required scriptstsconfig.json extending the root config# Create a changeset
pnpm changeset add
# Version bump
pnpm release
# Publish (CI will do this on tag push)
pnpm publish
Pre-commit hooks run automatically:
pnpm turbo lintpnpm turbo typecheckpnpm turbo test