Bootstrap a TypeScript npm library in one command.
npx ts-hajime- Oxlint and Oxfmt for linting and formatting
- tsdown for building — outputs both ESM and CJS
- vitest for testing
- tsx for running TypeScript directly
- Preconfigured
tsconfig.json,vitest.config.ts,oxlint.config.ts,oxfmt.config.ts, andpackage.json - GitHub Actions CI, Husky pre-commit hooks, and
.gitignoreout of the box - Example code for both library exports and
npxcommands - VSCode settings: file nesting, format-on-save, TSDK path
| Command | Description |
|---|---|
npm run build |
Build the library |
npm test |
Run tests |
npm run lint |
Lint and auto-fix |
npm run format |
Format code |
npm run tsc |
Type check |
npm run npx |
Test your npx command locally |
