diff options
Diffstat (limited to 'deps/npm/html/doc/cli/npm-run-script.html')
-rw-r--r-- | deps/npm/html/doc/cli/npm-run-script.html | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/deps/npm/html/doc/cli/npm-run-script.html b/deps/npm/html/doc/cli/npm-run-script.html index 13d2d43053e..c602aeb6985 100644 --- a/deps/npm/html/doc/cli/npm-run-script.html +++ b/deps/npm/html/doc/cli/npm-run-script.html @@ -3,6 +3,7 @@ <title>npm-run-script</title> <meta http-equiv="content-type" value="text/html;utf-8"> <link rel="stylesheet" type="text/css" href="../../static/style.css"> + <link rel="canonical" href="https://www.npmjs.org/doc/cli/npm-run-script.html"> <script async=true src="../../static/toc.js"></script> <body> @@ -12,11 +13,13 @@ <h2 id="SYNOPSIS">SYNOPSIS</h2> -<pre><code>npm run-script <script> <name></code></pre> +<pre><code>npm run-script [<pkg>] <command></code></pre> <h2 id="DESCRIPTION">DESCRIPTION</h2> -<p>This runs an arbitrary command from a package's "scripts" object.</p> +<p>This runs an arbitrary command from a package's <code>"scripts"</code> object. +If no package name is provided, it will search for a <code>package.json</code> +in the current folder and use its <code>"scripts"</code> object.</p> <p>It is used by the test, start, restart, and stop commands, but can be called directly, as well.</p> @@ -35,5 +38,5 @@ called directly, as well.</p> <tr><td style="width:60px;height:10px;background:rgb(237,127,127)" colspan=6> </td><td colspan=10 style="width:10px;height:10px;background:rgb(237,127,127)"> </td></tr> <tr><td colspan=5 style="width:50px;height:10px;background:#fff"> </td><td style="width:40px;height:10px;background:rgb(237,127,127)" colspan=4> </td><td style="width:90px;height:10px;background:#fff" colspan=9> </td></tr> </table> -<p id="footer">npm-run-script — npm@1.4.6</p> +<p id="footer">npm-run-script — npm@1.4.8</p> |