Welcome to @ts-dev-tools/core 💎
Common Typescript dev tools
What’s included
📦 Package scripts
test: Run tests with Vitestformat: Format code with Biomelint: Run linter with Biomecheck: Run Biome checks and apply safe fixesprepare: Self install / update
⚡ Git hooks
pre-commit
- Run Biome checks against staged git files
commit-msg
- Lint conventional commit message with commit-lint
pre-push
- Run linter
- Execute Typescript compiler with tsc
- Run tests
👕 Code quality
- Install and configure Biome for linting and formatting
- Enable Biome recommended rules and VCS integration
- Organize imports with Biome assist actions
🧪 Tests
- Install and configure Vitest
- Install and configure @vitest/coverage-v8 for coverage reports
📖 Types
Usage
1. Install
npm install --save-dev @ts-dev-tools/core
Or
yarn add --dev @ts-dev-tools/core
Or
pnpm add -D @ts-dev-tools/core
2. Enable ts-dev-tools
npm exec ts-dev-tools install
Or
yarn ts-dev-tools install
Or
pnpm ts-dev-tools install
⚠️ If your package is using yarn, is not private and you’re publishing it on a registry like npmjs.com, you need to disable postinstall script using pinst. Otherwise, postinstall will run when someone installs your package and result in an error.