diff --git a/package.json b/package.json index b316c878ff..553880e495 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,8 @@ "test:watch": "vitest", "test:cov": "vitest --coverage", "build": "rollup -c", - "prepublishOnly": "yarn clean && yarn check-types && yarn format:check && yarn lint && yarn test && yarn build", + "prepack": "yarn build", + "prepublishOnly": "yarn clean && yarn check-types && yarn format:check && yarn lint && yarn test", "examples:lint": "eslint --ext js,ts examples", "examples:test": "cross-env CI=true babel-node examples/testAll.js", "tsc": "tsc"