diff options
Diffstat (limited to 'deps/npm/html/doc/files/npm-json.html')
-rw-r--r-- | deps/npm/html/doc/files/npm-json.html | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/deps/npm/html/doc/files/npm-json.html b/deps/npm/html/doc/files/npm-json.html index 751bbebde9..971b953e2b 100644 --- a/deps/npm/html/doc/files/npm-json.html +++ b/deps/npm/html/doc/files/npm-json.html @@ -277,7 +277,13 @@ shortcut syntax you use for <code>npm install</code>:</p> "repository": "bitbucket:user/repo" -"repository": "gitlab:user/repo"</code></pre><h2 id="scripts">scripts</h2> +"repository": "gitlab:user/repo"</code></pre><p>If the <code>package.json</code> for your package is not in the root directory (for example +if it is part of a monorepo), you can specify the directory in which it lives:</p> +<pre><code>"repository": { + "type" : "git", + "url" : "https://github.com/facebook/react.git", + "directory": "packages/react-dom" +}</code></pre><h2 id="scripts">scripts</h2> <p>The "scripts" property is a dictionary containing script commands that are run at various times in the lifecycle of your package. The key is the lifecycle event, and the value is the command to run at that point.</p> @@ -574,5 +580,5 @@ ignored.</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">package.json — npm@6.7.0</p> +<p id="footer">package.json — npm@6.9.0</p> |