@pyyupsk/npm-ts-template
v0.1.2
Published
A TypeScript library template with modern tooling
Maintainers
Readme
npm-ts-template
A zero-config TypeScript library template with modern tooling. Start building your npm package in seconds.
Quick Start
Click Use this template to create your repository
Clone and install:
git clone https://github.com/YOUR_USERNAME/YOUR_REPO.git cd YOUR_REPO bun installUpdate
package.jsonwith your package name and detailsStart coding in
src/index.ts
Features
- TypeScript 5.x with strict mode
- Dual ESM/CJS output via tsdown
- Biome for linting and formatting
- ESLint with JSDoc and SonarJS for documentation and code quality
- Vitest for testing with coverage
- Lefthook for git hooks
- Changesets for versioning and publishing
- GitHub Actions for CI/CD
Documentation
For detailed guides on configuration, testing, and publishing:
Scripts
| Script | Description |
| ------------------- | ---------------------- |
| bun run build | Build ESM/CJS bundles |
| bun run dev | Build in watch mode |
| bun run test | Run tests |
| bun run lint | Check code quality |
| bun run typecheck | Check TypeScript types |
| bun run changeset | Create a changeset |
