Skip to content

Commit

Permalink
[build] run copy-metafiles script before publishing only
Browse files Browse the repository at this point in the history
The copy-metafiles script breaks installation on windows. It is actually only
needed before publishing. Thus we run it as a `prepublishOnly` script instead of
`prepublish` (for more info see https://docs.npmjs.com/misc/scripts#description)
  • Loading branch information
raphinesse authored and ljharb committed Feb 7, 2020
1 parent 45f0860 commit 4ad8baf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"scripts": {
"prebuild": "rimraf lib",
"build": "babel --quiet --out-dir lib src",
"postbuild": "npm run copy-metafiles",
"copy-metafiles": "for DIR in memo-parser resolvers/node resolvers/webpack utils; do cp LICENSE .npmrc \"${DIR}/\"; done",
"watch": "npm run mocha -- --watch tests/src",
"pretest": "linklocal",
Expand All @@ -31,6 +30,7 @@
"test-compiled": "npm run prepublish && NODE_PATH=./lib mocha --compilers js:babel-register --recursive tests/src",
"test-all": "npm test && for resolver in ./resolvers/*; do cd $resolver && npm test && cd ../..; done",
"prepublish": "npm run build",
"prepublishOnly": "npm run copy-metafiles",
"coveralls": "nyc report --reporter lcovonly && cat ./coverage/lcov.info | coveralls"
},
"repository": {
Expand Down

0 comments on commit 4ad8baf

Please sign in to comment.