Skip to content

koji/npm-package-template-with-tsup

Repository files navigation

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

  1. install dependencies
# pnpm
$ pnpm install

# yarn
$ yarn

# npm
$ npm install
  1. add your code to src
  2. add export statement to src/index.ts
  3. test build command to build src. once the command works properly, you will see dist folder.
# pnpm
$ pnpm run build

# yarn
$ yarn build

# npm
$ npm run build
  1. publish your package
$ npm publish

test package

https://www.npmjs.com/package/npm-template-with-tsup

About

npm package template with typescript and tsup

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published