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

1.0.18 • Public • Published

Publishing the package to npm

  1. git must be initialized, remote origin is not required
  2. Run npm init -y
  3. Change the name in package.json to <@USERNAME/PACKAGE_NAME>: example @debirapid-ticket/common
  4. Commands to execute
> npm login
> npm publish --access public

After setup the package.json file

{
  "name": "@debirapid-ticket/common",
  "version": "1.0.6",
  "description": "",
  "main": "./build/common/src/index.js",
  "types": "./build/common/src/index.d.ts",
  "files": ["./build/**/*"],
  "scripts": {
    "clean": "del ./build/*",
    "build": "npm run clean && tsc",
    "pub": "git add . && git commit -m \"Updates\" && npm version patch && npm run build && npm publish"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "del-cli": "^5.1.0",
    "typescript": "^5.3.3"
  },
  "dependencies": {
    "@types/cookie-session": "^2.0.48",
    "@types/express": "^4.17.21",
    "@types/jsonwebtoken": "^9.0.5",
    "cookie-session": "^2.0.0",
    "express": "^4.18.2",
    "express-validator": "^7.0.1",
    "jsonwebtoken": "^9.0.2"
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @debirapid-ticket/common

Weekly Downloads

1

Version

1.0.18

License

ISC

Unpacked Size

24.9 kB

Total Files

50

Last publish

Collaborators

  • debirapid