Skip to content

Commit

Permalink
Run patch-package only on development (test+publish)
Browse files Browse the repository at this point in the history
  • Loading branch information
iglosiggio authored Sep 23, 2022
1 parent 66ee70d commit becb32a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit becb32a

Please sign in to comment.