From 9f668ac4204f8aff97cd42190d808b549f01568c Mon Sep 17 00:00:00 2001 From: hayden Date: Mon, 20 Nov 2023 09:58:11 +0800 Subject: [PATCH] build: add prepublishOnly hook --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 841c40f..bb22006 100644 --- a/package.json +++ b/package.json @@ -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" },