A template for creating TypeScript NPM packages.
In order to set up production package:
- Set actual
nameandrepositoryin thepackage.json - If you need, you may update
description,keywords,exportsand other fields in thepackage.jsonas well - Test the build running
pnpm run buildcommandWarning You may need to add external libs you use in your sources in the
externalssection of thebuild.config.ts - Specify
branchesin the.github/workflows/release.ymlrelease workflow - Push the code into the specified branch
Note You can run
npm publish --dry-runto check the log and debug what files are going to be included in the published package
Note Don't forget to use semantic commit messages since the release version (and the fact if the release itself is needed) is determined on base of the added commits' names.