@vpticketify-kafka/common
v1.0.24
Published
```bash git add . git commit -m "message" npm run build npm version patch npm publish` ```
Readme
Publish update
git add .
git commit -m "message"
npm run build
npm version patch
npm publish`How to deploy new npm package
Create a new Organization on npm.js
Setup new project with npm --init and initialize git
package.json
{ "name": "@vpticketify-kafka/common", "version": "1.0.0", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "", "license": "ISC", "description": "" }Run
npm publish --access publictsc --initUpdate the tsconfig.json
- Uncomment
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ - Uncomment and update
"outDir": "./build", /* Specify an output folder for all emitted files. */
- Uncomment
npm install -D del-cli typescriptUpdate package.json
{ "name": "@vpticketify-kafka/common", "version": "1.0.0", "main": "index.js", "scripts": { "clean": "del .\\build\\*", "build": "npm run clean && tsc" }, "keywords": [], "author": "", "license": "ISC", "description": "", "devDependencies": { "del-cli": "^6.0.0", "typescript": "^5.7.3" } }More Updates on package.json
{ "name": "@vpticketify-kafka/common", "version": "1.0.0", "main": "./build/index.js", // "main" decide which file to import whenever our module is being import "types": "./build/index.d.ts", //used by ts "files": ["build/**/*"], "scripts": { "clean": "del .\\build\\*", "build": "npm run clean && tsc" }, "keywords": [], "author": "", "license": "ISC", "description": "", "devDependencies": { "del-cli": "^6.0.0", "typescript": "^5.7.3" } }
