@open-templates/npm-package-template
v1.3.0
Published
A modern TypeScript npm package template with automated publishing, testing, and tooling
Readme
NPM Package Template
A modern, production-ready TypeScript npm package template from @open-templates.
Quick Start: Click Use this template, then run
npm run initto copy personalized files fromtemplates/into the repo root.
Using this template
- Use this template on GitHub to create your repository.
- Clone and initialize:
git clone https://github.com/open-templates/npm-package-template.git my-package
cd my-package
npm run initnpm run init copies from templates/ (README, package.json, LICENSE, .github/CODEOWNERS, etc.) with your owner, repo, and package name. The hosted template keeps @open-templates branding until you run init.
Features
- TypeScript, tsup (ESM + CJS), Vitest, ESLint flat config
- GitHub Actions: CI, publish (Trusted Publishing +
NPM_TOKENfallback), CodeQL templates/— adopter files; seetemplates/ABOUT_TEMPLATES.md
Scripts
| Script | Description |
| --- | --- |
| npm run init | Copy templates/ → root with your GitHub/npm metadata |
| npm run dev | lint + typecheck + test + build |
Full list: docs/TEMPLATE_SETUP.md.
License
MIT — see LICENSE.
Maintained by @open-templates.
