How to publish typescript package to npm registry
On This Page
- Open template: https://github.com/romankurnovskii/npm-typescript-package-template
- Click
Use this template
- Create repo from this template.
- git clone new repo
- update code
src/index.ts
,src/bin.ts
How to check if bin
script works from terminal:
npm link && npm link mypackage
mypackage
Publish:
npm run prepublishOnly
npm publish