| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -777,3 +777,9 @@ wangsai <wangsai@bootcss.com> | |||
| 777 | 777 | Luke Hefson <luke@github.com> | |
| 778 | 778 | mrmlnc <mrmlnc@yandex-team.ru> | |
| 779 | 779 | Juan Picado <juanpicado19@gmail.com> | |
| 780 | + Kevin Cormier <kcormier@redhat.com> | ||
| 781 | + Nariyasu Heseri <heserisiyookang@gmail.com> | ||
| 782 | + rethab <rethab@protonmail.ch> | ||
| 783 | + Spencer Wilson <5624115+spencerwilson@users.noreply.github.com> | ||
| 784 | + Daniel Park <gimli01@github.com> | ||
| 785 | + Daniel Park <daniel.park@endevors.io> | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,90 @@ | |||
| 1 | + ## v7.15.1 (2021-05-31) | ||
| 2 | + | ||
| 3 | + ### BUG FIXES | ||
| 4 | + | ||
| 5 | + * [`598a17a26`](https://github.com/npm/cli/commit/598a17a2671c9e3bc204dddd6488169c9a72c6a1) | ||
| 6 | + [#3329](https://github.com/npm/cli/issues/3329) | ||
| 7 | + fix(libnpmexec): don't detach output from npm | ||
| 8 | + ([@wraithgar](https://github.com/wraithgar)) | ||
| 9 | + | ||
| 10 | + ### DEPENDENCIES | ||
| 11 | + | ||
| 12 | + * [`c4fc03e9e`](https://github.com/npm/cli/commit/c4fc03e9eb3a6386e8feacb67c19f0a1578dfe38) | ||
| 13 | + `@npmcli/arborist@2.6.1` | ||
| 14 | + * fixes reifying deps with mismatching version ranges between | ||
| 15 | + actual and virtual trees | ||
| 16 | + * [`9159fa62a`](https://github.com/npm/cli/commit/9159fa62a10dee09daef178fc7be161a02824004) | ||
| 17 | + `libnpmexec@1.2.0` | ||
| 18 | + | ||
| 19 | + ## v7.15.0 (2021-05-27) | ||
| 20 | + | ||
| 21 | + ### FEATURES | ||
| 22 | + | ||
| 23 | + * [`399ff8cbc`](https://github.com/npm/cli/commit/399ff8cbccd5198f637518ccafa86c43bab47a4a) | ||
| 24 | + [#3312](https://github.com/npm/cli/issues/3312) | ||
| 25 | + feat(link): add workspace support | ||
| 26 | + ([@isaacs](https://github.com/isaacs)) | ||
| 27 | + | ||
| 28 | + ### BUG FIXES | ||
| 29 | + | ||
| 30 | + * [`46a9bcbcb`](https://github.com/npm/cli/commit/46a9bcbcb0bb2435dca6f45a61b8631f580c7f06) | ||
| 31 | + [#3282](https://github.com/npm/cli/issues/3282) | ||
| 32 | + fix(docs): proper postinstall script file name | ||
| 33 | + ([@KevinFCormier](https://github.com/KevinFCormier)) | ||
| 34 | + * [`83590d40f`](https://github.com/npm/cli/commit/83590d40f94347f21714dbd158b9ddcad9c82de9) | ||
| 35 | + [#3272](https://github.com/npm/cli/issues/3272) | ||
| 36 | + fix(ls): show relative paths from root | ||
| 37 | + ([@isaacs](https://github.com/isaacs)) | ||
| 38 | + * [`a574b518a`](https://github.com/npm/cli/commit/a574b518ae5b8f0664ed388cf1be6288d8c2e68d) | ||
| 39 | + [#3304](https://github.com/npm/cli/issues/3304) | ||
| 40 | + fix(completion): restore IFS even if `npm completion` returns error | ||
| 41 | + ([@NariyasuHeseri](https://github.com/NariyasuHeseri)) | ||
| 42 | + * [`554e8a5cd`](https://github.com/npm/cli/commit/554e8a5cd7034052a59a9ada31e4b8f73712211a) | ||
| 43 | + [#3311](https://github.com/npm/cli/issues/3311) | ||
| 44 | + set audit exit code properly | ||
| 45 | + ([@isaacs](https://github.com/isaacs)) | ||
| 46 | + * [`4a4fbe33c`](https://github.com/npm/cli/commit/4a4fbe33c51413adcd558b4af6f1e204b1b87e41) | ||
| 47 | + [#3268](https://github.com/npm/cli/issues/3268) | ||
| 48 | + [#3285](https://github.com/npm/cli/issues/3285) | ||
| 49 | + fix(publish): skip private workspaces | ||
| 50 | + ([@ruyadorno](https://github.com/ruyadorno)) | ||
| 51 | + | ||
| 52 | + ### DOCUMENTATION | ||
| 53 | + | ||
| 54 | + * [`3c53d631f`](https://github.com/npm/cli/commit/3c53d631f557cf2484e2f6a6172c44e36aea4817) | ||
| 55 | + [#3307](https://github.com/npm/cli/issues/3307) | ||
| 56 | + fix(docs): typo in package-lock.json docs | ||
| 57 | + ([@rethab](https://github.com/rethab)) | ||
| 58 | + * [`96367f93f`](https://github.com/npm/cli/commit/96367f93f46c24494d084c8b8d34e4de9cd375da) | ||
| 59 | + rebuild npm-pack doc | ||
| 60 | + ([@isaacs](https://github.com/isaacs)) | ||
| 61 | + * [`64b13dd10`](https://github.com/npm/cli/commit/64b13dd1082b6ca7eac4e8e329bfdd8cd8daf157) | ||
| 62 | + [#3313](https://github.com/npm/cli/issues/3313) | ||
| 63 | + Drop stale Python 3<->node-gyp remark | ||
| 64 | + ([@spencerwilson](https://github.com/spencerwilson)) | ||
| 65 | + | ||
| 66 | + ### DEPENDENCIES | ||
| 67 | + | ||
| 68 | + * [`7b56bfdf3`](https://github.com/npm/cli/commit/7b56bfdf3f2ac67a926fc7893b883a16b46eb3fd) | ||
| 69 | + `cacache@15.2.0`: | ||
| 70 | + * feat: allow fully deleting indices | ||
| 71 | + * feat: add a validateEntry option to compact | ||
| 72 | + * chore: lint | ||
| 73 | + * chore: use standard npm style release scripts | ||
| 74 | + * [`dbbc151a3`](https://github.com/npm/cli/commit/dbbc151a3bcf89e2627dc267063edd185ead1cb8) | ||
| 75 | + `npm-audit-report@2.1.5`: | ||
| 76 | + * fix(exit-code): account for null auditLevel default (#46) | ||
| 77 | + * [`5b2604507`](https://github.com/npm/cli/commit/5b26045076477d3d350f539e60adf48a80376fda) | ||
| 78 | + chore(package-lock): update devDependencies | ||
| 79 | + ([@Gar](https://github.com/Gar)) | ||
| 80 | + | ||
| 81 | + ### AUTOMATION | ||
| 82 | + | ||
| 83 | + * [`3d5df0082`](https://github.com/npm/cli/commit/3d5df0082ae904dacdea8644286e8362d4a2ed50) | ||
| 84 | + [#3294](https://github.com/npm/cli/issues/3294) | ||
| 85 | + chore(ci): move node release PR workflow to cli repo | ||
| 86 | + ([@gimli01](https://github.com/gimli01)) | ||
| 87 | + | ||
| 1 | 88 | ## v7.14.0 (2021-05-20) | |
| 2 | 89 | ||
| 3 | 90 | ### FEATURES | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -99,6 +99,16 @@ relevant metadata by running `npm install <dep> --package-lock-only`. | |||
| 99 | 99 | If you _want_ to save the `file:` reference in your `package.json` and | |
| 100 | 100 | `package-lock.json` files, you can use `npm link <dep> --save` to do so. | |
| 101 | 101 | ||
| 102 | + ### Workspace Usage | ||
| 103 | + | ||
| 104 | + `npm link <pkg> --workspace <name>` will link the relevant package as a | ||
| 105 | + dependency of the specified workspace(s). Note that It may actually be | ||
| 106 | + linked into the parent project's `node_modules` folder, if there are no | ||
| 107 | + conflicting dependencies. | ||
| 108 | + | ||
| 109 | + `npm link --workspace <name>` will create a global link to the specified | ||
| 110 | + workspace(s). | ||
| 111 | + | ||
| 102 | 112 | ### Configuration | |
| 103 | 113 | ||
| 104 | 114 | <!-- AUTOGENERATED CONFIG DESCRIPTIONS START --> | |
@@ -261,6 +271,38 @@ commands that modify your local installation, eg, `install`, `update`, | |||
| 261 | 271 | Note: This is NOT honored by other network related commands, eg `dist-tags`, | |
| 262 | 272 | `owner`, etc. | |
| 263 | 273 | ||
| 274 | + #### `workspace` | ||
| 275 | + | ||
| 276 | + * Default: | ||
| 277 | + * Type: String (can be set multiple times) | ||
| 278 | + | ||
| 279 | + Enable running a command in the context of the configured workspaces of the | ||
| 280 | + current project while filtering by running only the workspaces defined by | ||
| 281 | + this configuration option. | ||
| 282 | + | ||
| 283 | + Valid values for the `workspace` config are either: | ||
| 284 | + | ||
| 285 | + * Workspace names | ||
| 286 | + * Path to a workspace directory | ||
| 287 | + * Path to a parent workspace directory (will result to selecting all of the | ||
| 288 | + nested workspaces) | ||
| 289 | + | ||
| 290 | + When set for the `npm init` command, this may be set to the folder of a | ||
| 291 | + workspace which does not yet exist, to create the folder and set it up as a | ||
| 292 | + brand new workspace within the project. | ||
| 293 | + | ||
| 294 | + This value is not exported to the environment for child processes. | ||
| 295 | + | ||
| 296 | + #### `workspaces` | ||
| 297 | + | ||
| 298 | + * Default: false | ||
| 299 | + * Type: Boolean | ||
| 300 | + | ||
| 301 | + Enable running a command in the context of **all** the configured | ||
| 302 | + workspaces. | ||
| 303 | + | ||
| 304 | + This value is not exported to the environment for child processes. | ||
| 305 | + | ||
| 264 | 306 | <!-- AUTOGENERATED CONFIG DESCRIPTIONS END --> | |
| 265 | 307 | ||
| 266 | 308 | ### See Also | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27,6 +27,15 @@ commands that modify your local installation, eg, `install`, `update`, | |||
| 27 | 27 | Note: This is NOT honored by other network related commands, eg `dist-tags`, | |
| 28 | 28 | `owner`, etc. | |
| 29 | 29 | ||
| 30 | + #### `json` | ||
| 31 | + | ||
| 32 | + * Default: false | ||
| 33 | + * Type: Boolean | ||
| 34 | + | ||
| 35 | + Whether or not to output JSON data, rather than the normal output. | ||
| 36 | + | ||
| 37 | + Not supported by all npm commands. | ||
| 38 | + | ||
| 30 | 39 | #### `workspace` | |
| 31 | 40 | ||
| 32 | 41 | * Default: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -62,10 +62,8 @@ requires compiling of C++ Code, npm will use | |||
| 62 | 62 | [node-gyp](https://github.com/nodejs/node-gyp) for that task. | |
| 63 | 63 | For a Unix system, [node-gyp](https://github.com/nodejs/node-gyp) | |
| 64 | 64 | needs Python, make and a buildchain like GCC. On Windows, | |
| 65 | - Python and Microsoft Visual Studio C++ are needed. Python 3 is | ||
| 66 | - not supported by [node-gyp](https://github.com/nodejs/node-gyp). | ||
| 67 | - For more information visit | ||
| 68 | - [the node-gyp repository](https://github.com/nodejs/node-gyp) and | ||
| 65 | + Python and Microsoft Visual Studio C++ are needed. For more information | ||
| 66 | + visit [the node-gyp repository](https://github.com/nodejs/node-gyp) and | ||
| 69 | 67 | the [node-gyp Wiki](https://github.com/nodejs/node-gyp/wiki). | |
| 70 | 68 | ||
| 71 | 69 | ### Directories | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -36,8 +36,8 @@ various purposes: | |||
| 36 | 36 | Both of these files have the same format, and perform similar functions in | |
| 37 | 37 | the root of a project. | |
| 38 | 38 | ||
| 39 | - The difference is that `package-lock.json` is that it cannot be published, | ||
| 40 | - and it will be ignored if found in any place other than the root project. | ||
| 39 | + The difference is that `package-lock.json` cannot be published, and it will | ||
| 40 | + be ignored if found in any place other than the root project. | ||
| 41 | 41 | ||
| 42 | 42 | In contrast, [npm-shrinkwrap.json](/configuring-npm/npm-shrinkwrap-json) allows | |
| 43 | 43 | publication, and defines the dependency tree from the point encountered. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -304,7 +304,7 @@ For example, if your package.json contains this: | |||
| 304 | 304 | { | |
| 305 | 305 | "scripts" : { | |
| 306 | 306 | "install" : "scripts/install.js", | |
| 307 | - "postinstall" : "scripts/postinstall.js", | ||
| 307 | + "postinstall" : "scripts/install.js", | ||
| 308 | 308 | "uninstall" : "scripts/uninstall.js" | |
| 309 | 309 | } | |
| 310 | 310 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -141,7 +141,7 @@ <h1 id="npm-link">npm-link</h1> | |||
| 141 | 141 | ||
| 142 | 142 | <section id="table_of_contents"> | |
| 143 | 143 | <h2 id="table-of-contents">Table of contents</h2> | |
| 144 | - <div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#description">Description</a></li><li><a href="#caveat">Caveat</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#save"><code>save</code></a></li><li><a href="#save-exact"><code>save-exact</code></a></li><li><a href="#global"><code>global</code></a></li><li><a href="#global-style"><code>global-style</code></a></li><li><a href="#legacy-bundling"><code>legacy-bundling</code></a></li><li><a href="#strict-peer-deps"><code>strict-peer-deps</code></a></li><li><a href="#package-lock"><code>package-lock</code></a></li><li><a href="#omit"><code>omit</code></a></li><li><a href="#ignore-scripts"><code>ignore-scripts</code></a></li><li><a href="#audit"><code>audit</code></a></li><li><a href="#bin-links"><code>bin-links</code></a></li><li><a href="#fund"><code>fund</code></a></li><li><a href="#dry-run"><code>dry-run</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div> | ||
| 144 | + <div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#description">Description</a></li><li><a href="#caveat">Caveat</a></li><li><a href="#workspace-usage">Workspace Usage</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#save"><code>save</code></a></li><li><a href="#save-exact"><code>save-exact</code></a></li><li><a href="#global"><code>global</code></a></li><li><a href="#global-style"><code>global-style</code></a></li><li><a href="#legacy-bundling"><code>legacy-bundling</code></a></li><li><a href="#strict-peer-deps"><code>strict-peer-deps</code></a></li><li><a href="#package-lock"><code>package-lock</code></a></li><li><a href="#omit"><code>omit</code></a></li><li><a href="#ignore-scripts"><code>ignore-scripts</code></a></li><li><a href="#audit"><code>audit</code></a></li><li><a href="#bin-links"><code>bin-links</code></a></li><li><a href="#fund"><code>fund</code></a></li><li><a href="#dry-run"><code>dry-run</code></a></li><li><a href="#workspace"><code>workspace</code></a></li><li><a href="#workspaces"><code>workspaces</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div> | ||
| 145 | 145 | </section> | |
| 146 | 146 | ||
| 147 | 147 | <div id="_content"><h3 id="synopsis">Synopsis</h3> | |
@@ -209,6 +209,13 @@ <h3 id="caveat">Caveat</h3> | |||
| 209 | 209 | relevant metadata by running <code>npm install <dep> --package-lock-only</code>.</p> | |
| 210 | 210 | <p>If you <em>want</em> to save the <code>file:</code> reference in your <code>package.json</code> and | |
| 211 | 211 | <code>package-lock.json</code> files, you can use <code>npm link <dep> --save</code> to do so.</p> | |
| 212 | + <h3 id="workspace-usage">Workspace Usage</h3> | ||
| 213 | + <p><code>npm link <pkg> --workspace <name></code> will link the relevant package as a | ||
| 214 | + dependency of the specified workspace(s). Note that It may actually be | ||
| 215 | + linked into the parent project’s <code>node_modules</code> folder, if there are no | ||
| 216 | + conflicting dependencies.</p> | ||
| 217 | + <p><code>npm link --workspace <name></code> will create a global link to the specified | ||
| 218 | + workspace(s).</p> | ||
| 212 | 219 | <h3 id="configuration">Configuration</h3> | |
| 213 | 220 | <!-- raw HTML omitted --> | |
| 214 | 221 | <!-- raw HTML omitted --> | |
@@ -347,6 +354,33 @@ <h4 id="dry-run"><code>dry-run</code></h4> | |||
| 347 | 354 | <code>dedupe</code>, <code>uninstall</code>, as well as <code>pack</code> and <code>publish</code>.</p> | |
| 348 | 355 | <p>Note: This is NOT honored by other network related commands, eg <code>dist-tags</code>, | |
| 349 | 356 | <code>owner</code>, etc.</p> | |
| 357 | + <h4 id="workspace"><code>workspace</code></h4> | ||
| 358 | + <ul> | ||
| 359 | + <li>Default:</li> | ||
| 360 | + <li>Type: String (can be set multiple times)</li> | ||
| 361 | + </ul> | ||
| 362 | + <p>Enable running a command in the context of the configured workspaces of the | ||
| 363 | + current project while filtering by running only the workspaces defined by | ||
| 364 | + this configuration option.</p> | ||
| 365 | + <p>Valid values for the <code>workspace</code> config are either:</p> | ||
| 366 | + <ul> | ||
| 367 | + <li>Workspace names</li> | ||
| 368 | + <li>Path to a workspace directory</li> | ||
| 369 | + <li>Path to a parent workspace directory (will result to selecting all of the | ||
| 370 | + nested workspaces)</li> | ||
| 371 | + </ul> | ||
| 372 | + <p>When set for the <code>npm init</code> command, this may be set to the folder of a | ||
| 373 | + workspace which does not yet exist, to create the folder and set it up as a | ||
| 374 | + brand new workspace within the project.</p> | ||
| 375 | + <p>This value is not exported to the environment for child processes.</p> | ||
| 376 | + <h4 id="workspaces"><code>workspaces</code></h4> | ||
| 377 | + <ul> | ||
| 378 | + <li>Default: false</li> | ||
| 379 | + <li>Type: Boolean</li> | ||
| 380 | + </ul> | ||
| 381 | + <p>Enable running a command in the context of <strong>all</strong> the configured | ||
| 382 | + workspaces.</p> | ||
| 383 | + <p>This value is not exported to the environment for child processes.</p> | ||
| 350 | 384 | <!-- raw HTML omitted --> | |
| 351 | 385 | <h3 id="see-also">See Also</h3> | |
| 352 | 386 | <ul> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -159,7 +159,7 @@ <h3 id="description">Description</h3> | |||
| 159 | 159 | the results to only the paths to the packages named. Note that nested | |
| 160 | 160 | packages will <em>also</em> show the paths to the specified packages. For | |
| 161 | 161 | example, running <code>npm ls promzard</code> in npm’s source tree will show:</p> | |
| 162 | - <pre lang="bash"><code>npm@7.14.0 /path/to/npm | ||
| 162 | + <pre lang="bash"><code>npm@7.15.1 /path/to/npm | ||
| 163 | 163 | └─┬ init-package-json@0.0.4 | |
| 164 | 164 | └── promzard@0.1.5 | |
| 165 | 165 | </code></pre> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -141,7 +141,7 @@ <h1 id="npm-pack">npm-pack</h1> | |||
| 141 | 141 | ||
| 142 | 142 | <section id="table_of_contents"> | |
| 143 | 143 | <h2 id="table-of-contents">Table of contents</h2> | |
| 144 | - <div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#dry-run"><code>dry-run</code></a></li><li><a href="#workspace"><code>workspace</code></a></li><li><a href="#workspaces"><code>workspaces</code></a></li></ul><li><a href="#description">Description</a></li><li><a href="#see-also">See Also</a></li></ul></div> | ||
| 144 | + <div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#dry-run"><code>dry-run</code></a></li><li><a href="#json"><code>json</code></a></li><li><a href="#workspace"><code>workspace</code></a></li><li><a href="#workspaces"><code>workspaces</code></a></li></ul><li><a href="#description">Description</a></li><li><a href="#see-also">See Also</a></li></ul></div> | ||
| 145 | 145 | </section> | |
| 146 | 146 | ||
| 147 | 147 | <div id="_content"><h3 id="synopsis">Synopsis</h3> | |
@@ -161,6 +161,13 @@ <h4 id="dry-run"><code>dry-run</code></h4> | |||
| 161 | 161 | <code>dedupe</code>, <code>uninstall</code>, as well as <code>pack</code> and <code>publish</code>.</p> | |
| 162 | 162 | <p>Note: This is NOT honored by other network related commands, eg <code>dist-tags</code>, | |
| 163 | 163 | <code>owner</code>, etc.</p> | |
| 164 | + <h4 id="json"><code>json</code></h4> | ||
| 165 | + <ul> | ||
| 166 | + <li>Default: false</li> | ||
| 167 | + <li>Type: Boolean</li> | ||
| 168 | + </ul> | ||
| 169 | + <p>Whether or not to output JSON data, rather than the normal output.</p> | ||
| 170 | + <p>Not supported by all npm commands.</p> | ||
| 164 | 171 | <h4 id="workspace"><code>workspace</code></h4> | |
| 165 | 172 | <ul> | |
| 166 | 173 | <li>Default:</li> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments