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:
authorJoshua Egan <josh-egan@users.noreply.github.com>2015-06-30 00:46:44 +0300
committerRebecca Turner <me@re-becca.org>2015-07-01 13:13:56 +0300
commitc689d55db2c354734e4a056d5911a03e9ff7e305 (patch)
tree7b54f07eed6c18d0786c2437eec0c5de3beadf22
parent0848698e36b8b020d391e2093c09470be3b960d6 (diff)
docs: Emphasize the correct way to write the script
PR-URL: https://github.com/npm/npm/pull/8760
-rw-r--r--doc/cli/npm-run-script.md7
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/cli/npm-run-script.md b/doc/cli/npm-run-script.md
index bed05bd37..1e956adcc 100644
--- a/doc/cli/npm-run-script.md
+++ b/doc/cli/npm-run-script.md
@@ -34,8 +34,11 @@ In addition to the shell's pre-existing `PATH`, `npm run` adds
`node_modules/.bin` to the `PATH` provided to scripts. Any binaries provided by
locally-installed dependencies can be used without the `node_modules/.bin`
prefix. For example, if there is a `devDependency` on `tap` in your package,
-you should write `"scripts": {"test": "tap test/\*.js"}` instead of `"scripts":
-{"test": "node_modules/.bin/tap test/\*.js"}` to run your tests.
+you should write:
+
+ "scripts": {"test": "tap test/\*.js"}
+
+instead of `"scripts": {"test": "node_modules/.bin/tap test/\*.js"}` to run your tests.
## SEE ALSO