build: add prepublishOnly hook

This commit is contained in:
hayden 2023-11-20 09:58:11 +08:00
parent aa101bf2ef
commit 9f668ac420

View File

@ -19,11 +19,12 @@
],
"scripts": {
"prepare": "husky install",
"prepublishOnly": "npm run build",
"antlr4": "node ./scripts/antlr4.js",
"build": "rm -rf dist && tsc",
"check-types": "tsc -p ./tsconfig.check.json",
"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-fix": "prettier --write '**/*.ts' --config ./.prettierrc"
},