1.0.0 • Published 2 years ago

@shawticketing/common v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

How to publish

  • Rename the package name in package.json
  • Create a git in the library
  • Login npm in CLI
  • Run npm version patch to increment version number
  • Publish to shawtickets
npm login
git commit -m ""
npm version patch
npm publish --access public

Set up typescript

We write typescript but publish javasript to NPM after transpire.

tsc --init
npm install typescript del-cli --save-dev

npm install express \
  express-validator \
  cookie-session \
  jsonwebtoken \
  http-status-codes \
  @types/cookie-session \
  @types/express \
  @types/jsonwebtoken

Patch

The steps can be condensed into "pub" script in package.json.

git add .
git commit -m "Some message"
npm version patch
npm run build
npm publish