Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2013-10-10 00:56:10 +0400
committerisaacs <i@izs.me>2013-10-10 00:56:10 +0400
commitafcc53971bf89a39473f0da4ee9990cccf02855a (patch)
treed5649e286d026d22a24be4a567e57bd518a282b0
parent0a7e6b5cc8f2fb4362f87bf43d90e1528752b499 (diff)
Run npm's prepublish script locally
Otherwise it fails when you do `npm install` in a fresh repo.
-rw-r--r--Makefile2
-rw-r--r--package.json2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 10c0c82a7..326d6f0d5 100644
--- a/Makefile
+++ b/Makefile
@@ -154,7 +154,7 @@ html/doc/misc/%.html: doc/misc/%.md $(html_docdeps)
ronn: node_modules/.bin/ronn
node_modules/.bin/ronn:
- node cli.js install ronn
+ node cli.js install ronn --no-global
doc: man
diff --git a/package.json b/package.json
index ab4be1e72..61d8957bc 100644
--- a/package.json
+++ b/package.json
@@ -132,7 +132,7 @@
"scripts": {
"test": "node ./test/run.js && tap test/tap/*.js",
"tap": "tap test/tap/*.js",
- "prepublish": "node bin/npm-cli.js prune ; rm -rf test/*/*/node_modules ; make -j4 doc",
+ "prepublish": "node bin/npm-cli.js prune --prefix=. --no-global && rm -rf test/*/*/node_modules && make -j4 doc",
"dumpconf": "env | grep npm | sort | uniq",
"echo": "node bin/npm-cli.js"
},