diff options
author | isaacs <i@izs.me> | 2013-10-10 00:56:10 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2013-10-10 00:56:10 +0400 |
commit | afcc53971bf89a39473f0da4ee9990cccf02855a (patch) | |
tree | d5649e286d026d22a24be4a567e57bd518a282b0 | |
parent | 0a7e6b5cc8f2fb4362f87bf43d90e1528752b499 (diff) |
Run npm's prepublish script locally
Otherwise it fails when you do `npm install` in a fresh repo.
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | package.json | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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" }, |