From f4130f38a321e337a14bbafb5f069be2e94329a4 Mon Sep 17 00:00:00 2001 From: Remco Haszing Date: Thu, 25 Mar 2021 17:52:58 +0100 Subject: [PATCH] Move yarn prepare script to prepack No need to rebuild the package on every `yarn install`, but it should be built before packing. --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 2f48d08..ba3c603 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,8 @@ "bundle:umd": "node ./scripts/bundle-umd", "bundle:esm": "node ./scripts/bundle-esm", "build": "yarn compile && yarn bundle", - "prepare": "husky install && yarn build", + "prepare": "husky install", + "prepack": "yarn build", "lint": "prettier \"{src,test}/**/*.{json,scss,html,ts}\" --write" }, "main": "./lib/esm/monaco.contribution.js",