| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8cfc18e commit 2df1624
127 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -147,10 +147,6 @@ this warning is treated as a failure. | |||
| 147 | 147 | If set to false, then ignore `package-lock.json` files when installing. This | |
| 148 | 148 | will also prevent _writing_ `package-lock.json` if `save` is true. | |
| 149 | 149 | ||
| 150 | - When package package-locks are disabled, automatic pruning of extraneous | ||
| 151 | - modules will also be disabled. To remove extraneous modules with | ||
| 152 | - package-locks disabled use `npm prune`. | ||
| 153 | - | ||
| 154 | 150 | This configuration does not affect `npm ci`. | |
| 155 | 151 | ||
| 156 | 152 | <!-- automatically generated, do not edit manually --> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -87,10 +87,6 @@ this warning is treated as a failure. | |||
| 87 | 87 | If set to false, then ignore `package-lock.json` files when installing. This | |
| 88 | 88 | will also prevent _writing_ `package-lock.json` if `save` is true. | |
| 89 | 89 | ||
| 90 | - When package package-locks are disabled, automatic pruning of extraneous | ||
| 91 | - modules will also be disabled. To remove extraneous modules with | ||
| 92 | - package-locks disabled use `npm prune`. | ||
| 93 | - | ||
| 94 | 90 | This configuration does not affect `npm ci`. | |
| 95 | 91 | ||
| 96 | 92 | <!-- automatically generated, do not edit manually --> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -162,10 +162,6 @@ this warning is treated as a failure. | |||
| 162 | 162 | If set to false, then ignore `package-lock.json` files when installing. This | |
| 163 | 163 | will also prevent _writing_ `package-lock.json` if `save` is true. | |
| 164 | 164 | ||
| 165 | - When package package-locks are disabled, automatic pruning of extraneous | ||
| 166 | - modules will also be disabled. To remove extraneous modules with | ||
| 167 | - package-locks disabled use `npm prune`. | ||
| 168 | - | ||
| 169 | 165 | This configuration does not affect `npm ci`. | |
| 170 | 166 | ||
| 171 | 167 | <!-- automatically generated, do not edit manually --> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -552,10 +552,6 @@ this warning is treated as a failure. | |||
| 552 | 552 | If set to false, then ignore `package-lock.json` files when installing. This | |
| 553 | 553 | will also prevent _writing_ `package-lock.json` if `save` is true. | |
| 554 | 554 | ||
| 555 | - When package package-locks are disabled, automatic pruning of extraneous | ||
| 556 | - modules will also be disabled. To remove extraneous modules with | ||
| 557 | - package-locks disabled use `npm prune`. | ||
| 558 | - | ||
| 559 | 555 | This configuration does not affect `npm ci`. | |
| 560 | 556 | ||
| 561 | 557 | <!-- automatically generated, do not edit manually --> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -224,10 +224,6 @@ this warning is treated as a failure. | |||
| 224 | 224 | If set to false, then ignore `package-lock.json` files when installing. This | |
| 225 | 225 | will also prevent _writing_ `package-lock.json` if `save` is true. | |
| 226 | 226 | ||
| 227 | - When package package-locks are disabled, automatic pruning of extraneous | ||
| 228 | - modules will also be disabled. To remove extraneous modules with | ||
| 229 | - package-locks disabled use `npm prune`. | ||
| 230 | - | ||
| 231 | 227 | This configuration does not affect `npm ci`. | |
| 232 | 228 | ||
| 233 | 229 | <!-- automatically generated, do not edit manually --> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -73,6 +73,52 @@ password, npm will prompt on the command line for one. | |||
| 73 | 73 | <!-- automatically generated, do not edit manually --> | |
| 74 | 74 | <!-- see lib/utils/config/definitions.js --> | |
| 75 | 75 | ||
| 76 | + #### `workspace` | ||
| 77 | + | ||
| 78 | + * Default: | ||
| 79 | + * Type: String (can be set multiple times) | ||
| 80 | + | ||
| 81 | + Enable running a command in the context of the configured workspaces of the | ||
| 82 | + current project while filtering by running only the workspaces defined by | ||
| 83 | + this configuration option. | ||
| 84 | + | ||
| 85 | + Valid values for the `workspace` config are either: | ||
| 86 | + | ||
| 87 | + * Workspace names | ||
| 88 | + * Path to a workspace directory | ||
| 89 | + * Path to a parent workspace directory (will result in selecting all | ||
| 90 | + workspaces within that folder) | ||
| 91 | + | ||
| 92 | + When set for the `npm init` command, this may be set to the folder of a | ||
| 93 | + workspace which does not yet exist, to create the folder and set it up as a | ||
| 94 | + brand new workspace within the project. | ||
| 95 | + | ||
| 96 | + This value is not exported to the environment for child processes. | ||
| 97 | + | ||
| 98 | + <!-- automatically generated, do not edit manually --> | ||
| 99 | + <!-- see lib/utils/config/definitions.js --> | ||
| 100 | + | ||
| 101 | + #### `workspaces` | ||
| 102 | + | ||
| 103 | + * Default: null | ||
| 104 | + * Type: null or Boolean | ||
| 105 | + | ||
| 106 | + Set to true to run the command in the context of **all** configured | ||
| 107 | + workspaces. | ||
| 108 | + | ||
| 109 | + Explicitly setting this to false will cause commands like `install` to | ||
| 110 | + ignore workspaces altogether. When not set explicitly: | ||
| 111 | + | ||
| 112 | + - Commands that operate on the `node_modules` tree (install, update, etc.) | ||
| 113 | + will link workspaces into the `node_modules` folder. - Commands that do | ||
| 114 | + other things (test, exec, publish, etc.) will operate on the root project, | ||
| 115 | + _unless_ one or more workspaces are specified in the `workspace` config. | ||
| 116 | + | ||
| 117 | + This value is not exported to the environment for child processes. | ||
| 118 | + | ||
| 119 | + <!-- automatically generated, do not edit manually --> | ||
| 120 | + <!-- see lib/utils/config/definitions.js --> | ||
| 121 | + | ||
| 76 | 122 | <!-- AUTOGENERATED CONFIG DESCRIPTIONS END --> | |
| 77 | 123 | ||
| 78 | 124 | ### See Also | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -76,6 +76,14 @@ Returned values are always in **json** format. | |||
| 76 | 76 | npm pkg get contributors[0].email | |
| 77 | 77 | ``` | |
| 78 | 78 | ||
| 79 | + For complex fields you can also name a property in square brackets | ||
| 80 | + to specifically select a child field. This is especially helpful | ||
| 81 | + with the exports object: | ||
| 82 | + | ||
| 83 | + ```bash | ||
| 84 | + npm pkg get "exports[.].require" | ||
| 85 | + ``` | ||
| 86 | + | ||
| 79 | 87 | * `npm pkg set <field>=<value>` | |
| 80 | 88 | ||
| 81 | 89 | Sets a `value` in your `package.json` based on the `field` value. When | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -280,10 +280,6 @@ this warning is treated as a failure. | |||
| 280 | 280 | If set to false, then ignore `package-lock.json` files when installing. This | |
| 281 | 281 | will also prevent _writing_ `package-lock.json` if `save` is true. | |
| 282 | 282 | ||
| 283 | - When package package-locks are disabled, automatic pruning of extraneous | ||
| 284 | - modules will also be disabled. To remove extraneous modules with | ||
| 285 | - package-locks disabled use `npm prune`. | ||
| 286 | - | ||
| 287 | 283 | This configuration does not affect `npm ci`. | |
| 288 | 284 | ||
| 289 | 285 | <!-- automatically generated, do not edit manually --> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1219,10 +1219,6 @@ The package to install for [`npm exec`](/commands/npm-exec) | |||
| 1219 | 1219 | If set to false, then ignore `package-lock.json` files when installing. This | |
| 1220 | 1220 | will also prevent _writing_ `package-lock.json` if `save` is true. | |
| 1221 | 1221 | ||
| 1222 | - When package package-locks are disabled, automatic pruning of extraneous | ||
| 1223 | - modules will also be disabled. To remove extraneous modules with | ||
| 1224 | - package-locks disabled use `npm prune`. | ||
| 1225 | - | ||
| 1226 | 1222 | This configuration does not affect `npm ci`. | |
| 1227 | 1223 | ||
| 1228 | 1224 | <!-- automatically generated, do not edit manually --> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -253,9 +253,6 @@ <h4 id="package-lock"><code>package-lock</code></h4> | |||
| 253 | 253 | </ul> | |
| 254 | 254 | <p>If set to false, then ignore <code>package-lock.json</code> files when installing. This | |
| 255 | 255 | will also prevent <em>writing</em> <code>package-lock.json</code> if <code>save</code> is true.</p> | |
| 256 | - <p>When package package-locks are disabled, automatic pruning of extraneous | ||
| 257 | - modules will also be disabled. To remove extraneous modules with | ||
| 258 | - package-locks disabled use <code>npm prune</code>.</p> | ||
| 259 | 256 | <p>This configuration does not affect <code>npm ci</code>.</p> | |
| 260 | 257 | <!-- raw HTML omitted --> | |
| 261 | 258 | <!-- raw HTML omitted --> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments