build: add prepublishOnly hook
This commit is contained in:
parent
aa101bf2ef
commit
9f668ac420
@ -19,11 +19,12 @@
|
|||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepare": "husky install",
|
"prepare": "husky install",
|
||||||
|
"prepublishOnly": "npm run build",
|
||||||
"antlr4": "node ./scripts/antlr4.js",
|
"antlr4": "node ./scripts/antlr4.js",
|
||||||
"build": "rm -rf dist && tsc",
|
"build": "rm -rf dist && tsc",
|
||||||
"check-types": "tsc -p ./tsconfig.check.json",
|
"check-types": "tsc -p ./tsconfig.check.json",
|
||||||
"test": "NODE_OPTIONS=--max_old_space_size=4096 && jest",
|
"test": "NODE_OPTIONS=--max_old_space_size=4096 && jest",
|
||||||
"release": "npm run build && node ./scripts/release.js",
|
"release": "node ./scripts/release.js",
|
||||||
"lint": "prettier --check '**/*.ts' --config ./.prettierrc",
|
"lint": "prettier --check '**/*.ts' --config ./.prettierrc",
|
||||||
"lint-fix": "prettier --write '**/*.ts' --config ./.prettierrc"
|
"lint-fix": "prettier --write '**/*.ts' --config ./.prettierrc"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user