@apldx/tsup-template
v0.0.5
Published
tsup template
Readme
tsup experiment
Resources
https://pauloe-me.medium.com/typescript-npm-package-publishing-a-beginners-guide-40b95908e69c
https://tsup.egoist.dev
Setup
pnpm init pnpm add typescript tsup cd link_test pnpm init pnpm add tsx
Install
Recursive install to install packages for link_test
pnpm i -r
Usage
Build
Builds JavaScript to dist/
pnpm build
Watch files for changes
pnpm watch
Link the module to the global store
Only needs to be run once to link to the global store
unless the path to the module changes
pnpm --global link
Test under link_test
cd link_test
Needs to be run any time a new node_modules is installed
pnpm --global link tsup-test
Runs client.js and client.ts
client.ts has a shebang with tsx, which will be
in PATH when run from a package.json script like this
pnpm test
