0.0.1 • Published 4 years ago
@qmatic/try-npm v0.0.1
Inspired by https://itnext.io/step-by-step-building-and-publishing-an-npm-typescript-package-44fe7164964c
Preparations
npm install --save-dev typescript
npm adduser
Set Version
npm version 0.0.1
Build NPM Package
npm test
npm pack
This produces the file try-npm-0.0.1.tgz which can be published. But before publishing it can be useful to install it locally for client application and try out.
Try Out NPM Package in Client Application Before Publish
In client application issue the command:
npm install <path to build package>
Eg npm install ~/repos/try-npm/try-npm-0.0.1.tgz
This would change the version of that client application package.json file to eg "file:../../../try-npm/try-npm-0.0.1.tgz"
Publish NPM Package - Public Scoped org at npmjs.com
npm publish --access public
See cloud-visits git repository branch dev/165786998-create-library-for-Qmatic-logging-from-typescript-lambdas-v1