@shawtickets/common
TypeScript icon, indicating that this package has built-in type declarations

1.0.25 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @shawtickets/common

Weekly Downloads

1

Version

1.0.25

License

ISC

Unpacked Size

19.8 kB

Total Files

44

Last publish

Collaborators

  • shawlu95