npm i -D tshot
Run a script: (for development)
This will also watch all the files imported by
your-script.ts and re-run it on changes.
Note that this command will emit temporary files to
./temp folder, it's recommended to add it to your
Build a script: (for production)
tshot build your-scripts.ts
This command will emit bundled script to
./dist folder with a filename matching the original filename. i.e. here you will get
peerDependencies are automatically excluded from the bundled scripts.
MIT © EGOIST