1.0.21 • Published 3 years ago

@ticketingbnt/common v1.0.21

Weekly downloads
88
License
ISC
Repository
-
Last release
3 years ago

Package Name

changed the name to @vmticketing/common

init git

  • add gitignor file
git init
git add .
git commit -m "initial commit"

Login nmp first

npm login

Publish to npm as public

npm publish --access public

Convert Typescript to Javascript

  • First install typeScript
tsc --init
npm install typescript del-cli --save-dev

Enable typescript config

  • go to tsconfig.json
  • uncomment
"declaration": true
  • out directory path under build
"outDir": "./build"
  • after that build the project
npm run build

Change to script to build and clean

  • go to package.json
  "scripts": {
    "clean": "del-cli ./build/*",
    "build": "npm run clean && tsc"
  },

Change following setting in package.json

  "main": "./build/index.js",
  "types": "./build/index.d.ts",
  "files": [
    "./build/**/*"
  ],

Bump Version

npm version patch

Short Command to bump and publish

  • go to package.json script section
"pub": "git add . && git commit -m \"Bump Version\" && npm version patch && npm run build && npm publish"
1.0.21

3 years ago

1.0.19

3 years ago

1.0.18

3 years ago

1.0.20

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.2

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.3

3 years ago

1.0.0

3 years ago