| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,52 @@ | |||
| 1 | + ## v7.8.0 (2021-04-01) | ||
| 2 | + ### FEATURES | ||
| 3 | + | ||
| 4 | + | ||
| 5 | + * [`8bcc5d73f`](https://github.com/npm/cli/commit/8bcc5d73f35434e781ff56419dd7f0c380efd072) | ||
| 6 | + [#2972](https://github.com/npm/cli/issues/2972) | ||
| 7 | + feat(workspaces): add repo and docs | ||
| 8 | + ([@wraithgar](https://github.com/wraithgar)) | ||
| 9 | + * [`ec520ce32`](https://github.com/npm/cli/commit/ec520ce32d5e834a32ebd58491df4200e01ce690) | ||
| 10 | + [#2998](https://github.com/npm/cli/issues/2998) | ||
| 11 | + feat(set-script): implement workspaces | ||
| 12 | + * [`32717a60e`](https://github.com/npm/cli/commit/32717a60eb55fcf8c7e5016223bfee78a6daba0e) | ||
| 13 | + [#3001](https://github.com/npm/cli/issues/3001) | ||
| 14 | + feat(view): add workspace support | ||
| 15 | + ([@wraithgar](https://github.com/wraithgar)) | ||
| 16 | + * [`7b177e43f`](https://github.com/npm/cli/commit/7b177e43f3bfb558bcd8723cdb2166a3df19647a) | ||
| 17 | + [#3014](https://github.com/npm/cli/issues/3014) | ||
| 18 | + feat(config): add 'envExport' flag | ||
| 19 | + ([@isaacs](https://github.com/isaacs)) | ||
| 20 | + | ||
| 21 | + ### BUG FIXES | ||
| 22 | + | ||
| 23 | + * [`4c4252348`](https://github.com/npm/cli/commit/4c4252348c538246e1072421d65f4558dc948080) | ||
| 24 | + [#3016](https://github.com/npm/cli/issues/3016) | ||
| 25 | + fix(usage): specify the key each time for multiples | ||
| 26 | + ([@isaacs](https://github.com/isaacs)) | ||
| 27 | + * [`9237d375b`](https://github.com/npm/cli/commit/9237d375b0b7d34c7dc5ba70aec7f616f4133732) | ||
| 28 | + [#3013](https://github.com/npm/cli/issues/3013) | ||
| 29 | + fix(docs): add workspaces configuration | ||
| 30 | + ([@wraithgar](https://github.com/wraithgar)) | ||
| 31 | + * [`cb6eb0d20`](https://github.com/npm/cli/commit/cb6eb0d206b7e2f63d5c7a7a17bea4aed1b9f2bf) | ||
| 32 | + [#3015](https://github.com/npm/cli/issues/3015) | ||
| 33 | + fix(ERESOLVE): better errors when current is missing | ||
| 34 | + ([@isaacs](https://github.com/isaacs)) | ||
| 35 | + | ||
| 36 | + ### DEPENDENCIES | ||
| 37 | + | ||
| 38 | + * [`61da39beb`](https://github.com/npm/cli/commit/61da39beb5373320e2b591b61ecd6596eeaba6ed) | ||
| 39 | + `@npmcli/config@2.1.0` | ||
| 40 | + * feat(config): add support for envExport:false | ||
| 41 | + * [`fb095a708`](https://github.com/npm/cli/commit/fb095a708a1f930bbd0195446ac611b82bfeff14) | ||
| 42 | + `@npmcli/arborist@2.3.0`: | ||
| 43 | + * [#2896](https://github.com/npm/cli/issues/2896) Provide currentEdge in | ||
| 44 | + ERESOLVE if known, and address self-linking edge case. | ||
| 45 | + * Add/remove dependencies to/from workspaces when set, not root project | ||
| 46 | + * Only reify the portions of the dependency graph identified by the | ||
| 47 | + `workspace` configuration value. | ||
| 48 | + * Do not recursively `chown` the project root path. | ||
| 49 | + | ||
| 1 | 50 | ## v7.7.6 (2021-03-29) | |
| 2 | 51 | ||
| 3 | 52 | ### BUG FIXES | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -41,6 +41,19 @@ Set to `true` to use default system URL opener. | |||
| 41 | 41 | ||
| 42 | 42 | The base URL of the npm package registry. | |
| 43 | 43 | ||
| 44 | + #### workspaces | ||
| 45 | + | ||
| 46 | + Enables workspaces context while searching the `package.json` in the | ||
| 47 | + current folder. Documentation urls for the packages named in each | ||
| 48 | + workspace will be opened. | ||
| 49 | + | ||
| 50 | + #### workspace | ||
| 51 | + | ||
| 52 | + Enables workspaces context and limits results to only those specified by | ||
| 53 | + this config item. Only the documentation urls for the packages named in | ||
| 54 | + the workspaces given here will be opened. | ||
| 55 | + | ||
| 56 | + | ||
| 44 | 57 | ### See Also | |
| 45 | 58 | ||
| 46 | 59 | * [npm view](/commands/npm-view) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -31,6 +31,19 @@ terminal. | |||
| 31 | 31 | ||
| 32 | 32 | Set to `true` to use default system URL opener. | |
| 33 | 33 | ||
| 34 | + #### workspaces | ||
| 35 | + | ||
| 36 | + Enables workspaces context while searching the `package.json` in the | ||
| 37 | + current folder. Repo urls for the packages named in each workspace will | ||
| 38 | + be opened. | ||
| 39 | + | ||
| 40 | + #### workspace | ||
| 41 | + | ||
| 42 | + Enables workspaces context and limits results to only those specified by | ||
| 43 | + this config item. Only the repo urls for the packages named in the | ||
| 44 | + workspaces given here will be opened. | ||
| 45 | + | ||
| 46 | + | ||
| 34 | 47 | ### See Also | |
| 35 | 48 | ||
| 36 | 49 | * [npm docs](/commands/npm-docs) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,7 +5,7 @@ description: Set tasks in the scripts section of package.json | |||
| 5 | 5 | --- | |
| 6 | 6 | ||
| 7 | 7 | ### Synopsis | |
| 8 | - An npm command that lets you create a task in the scripts section of the package.json. | ||
| 8 | + An npm command that lets you create a task in the `scripts` section of the `package.json`. | ||
| 9 | 9 | ||
| 10 | 10 | ```bash | |
| 11 | 11 | npm set-script [<script>] [<command>] | |
@@ -26,6 +26,19 @@ npm set-script [<script>] [<command>] | |||
| 26 | 26 | } | |
| 27 | 27 | ``` | |
| 28 | 28 | ||
| 29 | + ### Configuration | ||
| 30 | + | ||
| 31 | + #### workspaces | ||
| 32 | + | ||
| 33 | + Enables workspaces context. Tasks will be created in the `scripts` section | ||
| 34 | + of the `package.json` of each workspace. | ||
| 35 | + | ||
| 36 | + #### workspace | ||
| 37 | + | ||
| 38 | + Enables workspaces context and limits creating a task to the | ||
| 39 | + `package.json` files of the workspaces given. | ||
| 40 | + | ||
| 41 | + | ||
| 29 | 42 | ### See Also | |
| 30 | 43 | ||
| 31 | 44 | * [npm run-script](/commands/npm-run-script) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,8 +14,7 @@ aliases: info, show, v | |||
| 14 | 14 | ||
| 15 | 15 | ### Description | |
| 16 | 16 | ||
| 17 | - This command shows data about a package and prints it to the stream | ||
| 18 | - referenced by the `outfd` config, which defaults to stdout. | ||
| 17 | + This command shows data about a package and prints it to stdout. | ||
| 19 | 18 | ||
| 20 | 19 | As an example, to view information about the `connect` package from the registry, you would run: | |
| 21 | 20 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -185,7 +185,7 @@ registry and all registries configured for scopes. See the documentation for | |||
| 185 | 185 | #### `audit-level` | |
| 186 | 186 | ||
| 187 | 187 | * Default: null | |
| 188 | - * Type: "info", "low", "moderate", "high", "critical", "none", or null | ||
| 188 | + * Type: null, "info", "low", "moderate", "high", "critical", or "none" | ||
| 189 | 189 | ||
| 190 | 190 | The minimum level of vulnerability for `npm audit` to exit with a non-zero | |
| 191 | 191 | exit code. | |
@@ -1333,6 +1333,8 @@ Valid values for the `workspace` config are either: - Workspace names - Path | |||
| 1333 | 1333 | to a workspace directory - Path to a parent workspace directory (will result | |
| 1334 | 1334 | to selecting all of the nested workspaces) | |
| 1335 | 1335 | ||
| 1336 | + This value is not exported to the environment for child processes. | ||
| 1337 | + | ||
| 1336 | 1338 | #### `workspaces` | |
| 1337 | 1339 | ||
| 1338 | 1340 | * Default: false | |
@@ -1341,6 +1343,8 @@ to selecting all of the nested workspaces) | |||
| 1341 | 1343 | Enable running a command in the context of **all** the configured | |
| 1342 | 1344 | workspaces. | |
| 1343 | 1345 | ||
| 1346 | + This value is not exported to the environment for child processes. | ||
| 1347 | + | ||
| 1344 | 1348 | #### `yes` | |
| 1345 | 1349 | ||
| 1346 | 1350 | * Default: null | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -141,7 +141,7 @@ <h1 id="npm-docs">npm-docs</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="#configuration">Configuration</a></li><ul><li><a href="#browser">browser</a></li><li><a href="#registry">registry</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="#configuration">Configuration</a></li><ul><li><a href="#browser">browser</a></li><li><a href="#registry">registry</a></li><li><a href="#workspaces">workspaces</a></li><li><a href="#workspace">workspace</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> | |
@@ -171,6 +171,14 @@ <h4 id="registry">registry</h4> | |||
| 171 | 171 | <li>Type: url</li> | |
| 172 | 172 | </ul> | |
| 173 | 173 | <p>The base URL of the npm package registry.</p> | |
| 174 | + <h4 id="workspaces">workspaces</h4> | ||
| 175 | + <p>Enables workspaces context while searching the <code>package.json</code> in the | ||
| 176 | + current folder. Documentation urls for the packages named in each | ||
| 177 | + workspace will be opened.</p> | ||
| 178 | + <h4 id="workspace">workspace</h4> | ||
| 179 | + <p>Enables workspaces context and limits results to only those specified by | ||
| 180 | + this config item. Only the documentation urls for the packages named in | ||
| 181 | + the workspaces given here will be opened.</p> | ||
| 174 | 182 | <h3 id="see-also">See Also</h3> | |
| 175 | 183 | <ul> | |
| 176 | 184 | <li><a href="../commands/npm-view.html">npm view</a></li> | |
| 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.7.6 /path/to/npm | ||
| 162 | + <pre lang="bash"><code>npm@7.8.0 /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-repo">npm-repo</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="#configuration">Configuration</a></li><ul><li><a href="#browser">browser</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="#configuration">Configuration</a></li><ul><li><a href="#browser">browser</a></li><li><a href="#workspaces">workspaces</a></li><li><a href="#workspace">workspace</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> | |
@@ -162,6 +162,14 @@ <h4 id="browser">browser</h4> | |||
| 162 | 162 | <p>Set to <code>false</code> to suppress browser behavior and instead print urls to | |
| 163 | 163 | terminal.</p> | |
| 164 | 164 | <p>Set to <code>true</code> to use default system URL opener.</p> | |
| 165 | + <h4 id="workspaces">workspaces</h4> | ||
| 166 | + <p>Enables workspaces context while searching the <code>package.json</code> in the | ||
| 167 | + current folder. Repo urls for the packages named in each workspace will | ||
| 168 | + be opened.</p> | ||
| 169 | + <h4 id="workspace">workspace</h4> | ||
| 170 | + <p>Enables workspaces context and limits results to only those specified by | ||
| 171 | + this config item. Only the repo urls for the packages named in the | ||
| 172 | + workspaces given here will be opened.</p> | ||
| 165 | 173 | <h3 id="see-also">See Also</h3> | |
| 166 | 174 | <ul> | |
| 167 | 175 | <li><a href="../commands/npm-docs.html">npm docs</a></li> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -141,11 +141,11 @@ <h1 id="npm-set-script">npm-set-script</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="#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="#workspaces">workspaces</a></li><li><a href="#workspace">workspace</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> | |
| 148 | - <p>An npm command that lets you create a task in the scripts section of the package.json.</p> | ||
| 148 | + <p>An npm command that lets you create a task in the <code>scripts</code> section of the <code>package.json</code>.</p> | ||
| 149 | 149 | <pre lang="bash"><code>npm set-script [<script>] [<command>] | |
| 150 | 150 | </code></pre> | |
| 151 | 151 | <p><strong>Example:</strong></p> | |
@@ -160,6 +160,13 @@ <h2 id="table-of-contents">Table of contents</h2> | |||
| 160 | 160 | } | |
| 161 | 161 | } | |
| 162 | 162 | </code></pre> | |
| 163 | + <h3 id="configuration">Configuration</h3> | ||
| 164 | + <h4 id="workspaces">workspaces</h4> | ||
| 165 | + <p>Enables workspaces context. Tasks will be created in the <code>scripts</code> section | ||
| 166 | + of the <code>package.json</code> of each workspace.</p> | ||
| 167 | + <h4 id="workspace">workspace</h4> | ||
| 168 | + <p>Enables workspaces context and limits creating a task to the | ||
| 169 | + <code>package.json</code> files of the workspaces given.</p> | ||
| 163 | 170 | <h3 id="see-also">See Also</h3> | |
| 164 | 171 | <ul> | |
| 165 | 172 | <li><a href="../commands/npm-run-script.html">npm run-script</a></li> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments