From becb32abeef415c8f7c89100c5efc6457afb9d75 Mon Sep 17 00:00:00 2001 From: Ignacio Losiggio Date: Fri, 23 Sep 2022 18:05:02 -0300 Subject: [PATCH] Run patch-package only on development (test+publish) --- package.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 3c732bb71..423b91af9 100644 --- a/package.json +++ b/package.json @@ -81,7 +81,7 @@ "test-browser": "npm i karma-phantomjs-launcher && karma start", "bundle": "rollup -c && eslint underscore-umd.js && rollup -c rollup.config2.js", "bundle-treeshake": "cd test-treeshake && rollup --config", - "prepare-tests": "npm run bundle && npm run bundle-treeshake", + "prepare-tests": "patch-package && npm run bundle && npm run bundle-treeshake", "minify-umd": "terser underscore-umd.js -c \"evaluate=false\" --comments \"/ .*/\" -m", "minify-esm": "terser underscore-esm.js -c \"evaluate=false\" --comments \"/ .*/\" -m", "module-package-json": "node -e 'console.log(`{\"type\":\"module\",\"version\":\"${process.env.npm_package_version}\"}`)' > modules/package.json", @@ -91,8 +91,7 @@ "build": "npm run bundle && npm run build-umd && npm run build-esm && npm run alias-bundle", "doc": "docco underscore-esm.js && docco modules/*.js -c docco.css -t docs/linked-esm.jst", "weight": "npm run bundle && npm run minify-umd | gzip-size | pretty-bytes", - "prepublishOnly": "npm run build && npm run doc", - "postinstall": "patch-package" + "prepublishOnly": "patch-package && npm run build && npm run doc" }, "files": [ "underscore-esm.js",