Publishing

Publish a new version with the command npm version X

package.json:

"main": "dist/index.js",
"name": "your-module",
"scripts": {
// ...
"version": "auto-changelog -p && npm run stage-local-changes",
"postversion": "npm run push-local-changes && npm run build && npm publish --access=restricted"
},
"types": "dist/index.d.ts",
"version": "your-version"

Implementation

HaTs projects are pre-configured to run your Release Preparation CI Tasks before you publish a new major, minor, patch, or pre- release version.

Further Reading

Edit this page on GitHub

Happy TypeScript
©2022 👨🏾‍💻 Kamar Mack