{"repo":"rtivital/ts-package-template","free":true,"listed":false,"github":"https://github.com/rtivital/ts-package-template","clone":"git clone https://github.com/rtivital/ts-package-template.git","description":"A template to create npm packages with TypeScript","language":"TypeScript","stars":61,"topics":["typescript","boilerplate","template"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"ts-package-template A template to publish a TypeScript package to npm. Key features: - Ready to use ESM build system - Fast library bundling with Rolldown - Properly configured exports in package.json to support all modern bundlers and Node.js - CI with GitHub Actions - Testing and linting setup ready: Vitest, Oxlint, Oxfmt, Knip - Publish to npm with an npm script, including support for pre-releases (alpha, beta, rc) - npm pack validation as part of the testing pipeline: makes sure only necessary files are included in the package - Size limit check with size-limit Included tools: - Yarn v4 - Rolldown - vitest - oxfmt - oxlint - Knip - size-limit - GitHub workflow for tests Usage - Click \"Use this template\" button to create a new repository from this template - Clone the new repository - Change package.json to your own package name, description, etc. !important : change repository.url and other repository links to your own repository url - Install dependencies: yarn (other package managers are not supported) - Write your code in src/ directory - Run npm run release to build and publish your package to npm Testing - Run npm test to run all tests (oxfmt check, typecheck, lint, vitest tests, build, package validation with npm pack , knip) - Run npm run vitest:coverage to run vitest with coverage report - Run npm run vitest:watch to run vitest in watch mode - Run npm run size to validate package size or npm run analyze to see size analysis report Publishing to npm Use release scr","default_branch":null,"files":null,"tree":[],"storefront":"/r/rtivital","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rtivital/ts-package-template/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}