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": {
|
"scripts": {
|
||||||
"clean": "rimraf dist",
|
"clean": "rimraf dist",
|
||||||
"build": "npm run clean && tsc",
|
"build": "npm run clean && tsc",
|
||||||
"build:watch": "tsc -w",
|
"publish:local": "npm run build && npm pack",
|
||||||
"lint": "eslint src",
|
"publish:npm": "npm run build && npm publish",
|
||||||
"lint:fix": "eslint src --fix",
|
"version:patch": "npm version patch",
|
||||||
"prepare": "npm run build",
|
"version:minor": "npm version minor",
|
||||||
"prepublishOnly": "npm test && npm run lint",
|
"version:major": "npm version major"
|
||||||
"version": "git add -A src",
|
|
||||||
"postversion": "git push && git push --tags"
|
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
Loading…
Add table
Reference in a new issue