From 64df556f231b3df451f05bfc68f861ef160dcda4 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Wed, 22 Feb 2023 08:46:09 -0500 Subject: [PATCH] Build package in prepack instead of prepublish --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index b316c878ff..3b4da43364 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", + "prepublishOnly": "yarn clean && yarn check-types && yarn format:check && yarn lint && yarn test", + "prepack": "yarn build", "examples:lint": "eslint --ext js,ts examples", "examples:test": "cross-env CI=true babel-node examples/testAll.js", "tsc": "tsc"