@nesalia/template-monorepo-ts
v0.1.7
Published
TypeScript monorepo template with vitest, turbo, husky, and changesets
Readme
Package Template
TypeScript monorepo template with pnpm, turbo, vitest, husky, and changesets.
Setup
# Install dependencies
pnpm install
# Enable husky
pnpm prepareScripts
| 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 |
Adding a Package
- Create a new directory in
packages/ - Add a
package.jsonwith the required scripts - Add a
tsconfig.jsonextending the root config
Release
# Create a changeset
pnpm changeset add
# Version bump
pnpm release
# Publish (CI will do this on tag push)
pnpm publishGit Hooks
Pre-commit hooks run automatically:
pnpm turbo lintpnpm turbo typecheckpnpm turbo test
