An opinionated ready-to-use vanilla Typescript npm package template.
To bundle this project you need to install nvm (this will allow you to install and use the correct version of Node.js / npm for this project).
Library bundles with tsup.
- Install the right version of node / npm
nvm install && nvm use
- Install dependencies
npm ci
- Add your code to
src
- Add export statement to
src/index.ts
- You can build your code with the following command (once the command works properly, you will see
dist
folder) - Publish your package
npm publish
- Add tight eslint rules
Project forked from koji/npm-package-template-with-tsup.