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
path: root/doc
diff options
context:
space:
mode:
authorKenan Yildirim <kenan@kenany.me>2015-09-14 18:26:14 +0300
committerRebecca Turner <me@re-becca.org>2015-09-18 01:46:48 +0300
commit8b3859abcb6d255b2bb707361d6421943bda3abe (patch)
tree70ef9e99c68772f6da336c2d96acd5b3b8cabc1d /doc
parent8a942e0d2211848807a859a80d1ba76d7bd3c2a1 (diff)
docs: fix references to `node-waf`
The behavior described here has been inaccurate for a long time. Not only was the `wscript` bit removed from `read-package-json` over 2 years ago, the `install` script is what is set to the default (now `node-gyp rebuild`), not `preinstall`. Fixes #9583 PR-URL: https://github.com/npm/npm/pull/9584
Diffstat (limited to 'doc')
-rw-r--r--doc/misc/npm-scripts.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/misc/npm-scripts.md b/doc/misc/npm-scripts.md
index 1594d3c41..12c7f2316 100644
--- a/doc/misc/npm-scripts.md
+++ b/doc/misc/npm-scripts.md
@@ -69,10 +69,10 @@ npm will default some script values based on package contents.
If there is a `server.js` file in the root of your package, then npm
will default the `start` command to `node server.js`.
-* `"preinstall": "node-waf clean || true; node-waf configure build"`:
+* `"install": "node-gyp rebuild"`:
- If there is a `wscript` file in the root of your package, npm will
- default the `preinstall` command to compile using node-waf.
+ If there is a `bindings.gyp` file in the root of your package, npm will
+ default the `install` command to compile using node-gyp.
## USER