update package.json scripts for improved versioning and publishing
Some checks are pending
CI / build-and-publish (push) Waiting to run
Some checks are pending
CI / build-and-publish (push) Waiting to run
This commit is contained in:
parent
b6e5c5b1e4
commit
9af90aa4cc
1 changed files with 5 additions and 7 deletions
12
package.json
12
package.json
|
@ -15,13 +15,11 @@
|
|||
"scripts": {
|
||||
"clean": "rimraf dist",
|
||||
"build": "npm run clean && tsc",
|
||||
"build:watch": "tsc -w",
|
||||
"lint": "eslint src",
|
||||
"lint:fix": "eslint src --fix",
|
||||
"prepare": "npm run build",
|
||||
"prepublishOnly": "npm test && npm run lint",
|
||||
"version": "git add -A src",
|
||||
"postversion": "git push && git push --tags"
|
||||
"publish:local": "npm run build && npm pack",
|
||||
"publish:npm": "npm run build && npm publish",
|
||||
"version:patch": "npm version patch",
|
||||
"version:minor": "npm version minor",
|
||||
"version:major": "npm version major"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
Loading…
Add table
Reference in a new issue