npm-template-with-tsup-ian
v0.0.5
Published
npm package template with tsup and typescript
Downloads
1
Readme
npm-package-template-tsup
This is a template package to publish npm package with typescript and tsup.
tsup
Bundle your TypeScript library with no config, powered by esbuild.
https://tsup.egoist.dev/
how to use this
- install dependencies
# pnpm
$ pnpm install
# yarn
$ yarn
# npm
$ npm install
- add your code to
src
- add export statement to
src/index.ts
- test build command to build
src
. once the command works properly, you will seedist
folder.
# pnpm
$ pnpm run build
# yarn
$ yarn build
# npm
$ npm run build
- publish your package
$ npm publish
test package
https://www.npmjs.com/package/npm-template-with-tsup