| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -776,3 +776,4 @@ Marco Sirabella <marco@sirabella.org> | |||
| 776 | 776 | wangsai <wangsai@bootcss.com> | |
| 777 | 777 | Luke Hefson <luke@github.com> | |
| 778 | 778 | mrmlnc <mrmlnc@yandex-team.ru> | |
| 779 | + Juan Picado <juanpicado19@gmail.com> | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,58 @@ | |||
| 1 | + ## v7.14.0 (2021-05-20) | ||
| 2 | + | ||
| 3 | + ### FEATURES | ||
| 4 | + | ||
| 5 | + * [`0d1a9d787`](https://github.com/npm/cli/commit/0d1a9d78779dc015242fc03d2dad2039004fa2df) | ||
| 6 | + [#3227](https://github.com/npm/cli/issues/3227) | ||
| 7 | + feat(install): add workspaces support to npm install commands | ||
| 8 | + ([@isaacs](https://github.com/isaacs)) | ||
| 9 | + * [`c18626f04`](https://github.com/npm/cli/commit/c18626f047e3a0fedd3c86554a4a0a8f27925e77) | ||
| 10 | + [#3250](https://github.com/npm/cli/issues/3250) | ||
| 11 | + feat(ls): add workspaces support | ||
| 12 | + ([@ruyadorno](https://github.com/ruyadorno)) | ||
| 13 | + * [`41099d395`](https://github.com/npm/cli/commit/41099d3958d08f166313b7eb69b76458f8f9224c) | ||
| 14 | + [#3265](https://github.com/npm/cli/issues/3265) | ||
| 15 | + feat(explain): add workspaces support | ||
| 16 | + ([@ruyadorno](https://github.com/ruyadorno)) | ||
| 17 | + * [`fde354669`](https://github.com/npm/cli/commit/fde35466915b5ac5958c827fa7e919e1f186db51) | ||
| 18 | + [#3251](https://github.com/npm/cli/issues/3251) | ||
| 19 | + feat(unpublish): add workspace/dry-run support | ||
| 20 | + ([@wraithgar](https://github.com/wraithgar)) | ||
| 21 | + * [`83df3666c`](https://github.com/npm/cli/commit/83df3666cd82819230fb45f2a40afd531fe3b3c7) | ||
| 22 | + [#3260](https://github.com/npm/cli/issues/3260) | ||
| 23 | + feat(outdated): add workspaces support | ||
| 24 | + ([@ruyadorno](https://github.com/ruyadorno)) | ||
| 25 | + * [`63a7635f7`](https://github.com/npm/cli/commit/63a7635f7a2225a4edd1fe92f94a563965ac06c7) | ||
| 26 | + [#3217](https://github.com/npm/cli/issues/3217) | ||
| 27 | + feat(pack): add support to json config/output | ||
| 28 | + ([@mrmlnc](https://github.com/mrmlnc)) | ||
| 29 | + | ||
| 30 | + ### BUG FIXES | ||
| 31 | + | ||
| 32 | + * [`faa12ccc2`](https://github.com/npm/cli/commit/faa12ccc26b5f0790f79b2589780e536f4284491) | ||
| 33 | + [#3253](https://github.com/npm/cli/issues/3253) | ||
| 34 | + fix search description typos | ||
| 35 | + ([@juanpicado](https://github.com/juanpicado)) | ||
| 36 | + * [`2f5c28a68`](https://github.com/npm/cli/commit/2f5c28a68719e948d2efedf463ebcb35972aaefb) | ||
| 37 | + [#3243](https://github.com/npm/cli/issues/3243) | ||
| 38 | + fix(docs): autogenerate config docs for commands | ||
| 39 | + ([@isaacs](https://github.com/isaacs)) | ||
| 40 | + | ||
| 41 | + ### DEPENDENCIES | ||
| 42 | + | ||
| 43 | + * [`ec256a14a`](https://github.com/npm/cli/commit/ec256a14aa6eb2bd59fd55dcc6a4bc0148662c4e) | ||
| 44 | + `@npmcli/arborist@2.6.0` | ||
| 45 | + * [`5f15aba86`](https://github.com/npm/cli/commit/5f15aba866026e7c0d6844e6c07a528dc7454f14) | ||
| 46 | + `cacache@15.1.0` | ||
| 47 | + * [`b3add87e6`](https://github.com/npm/cli/commit/b3add87e686968b7af3067c685d2561baf90e397) | ||
| 48 | + [#3262](https://github.com/npm/cli/pull/3262) | ||
| 49 | + `npm-registry-client@10.1.2`: | ||
| 50 | + * fixed sso login token | ||
| 51 | + | ||
| 1 | 52 | ## v7.13.0 (2021-05-13) | |
| 2 | 53 | ||
| 54 | + ### FEATURES | ||
| 55 | + | ||
| 3 | 56 | * [`076420c14`](https://github.com/npm/cli/commit/076420c149d097056f687e44e21744b743b86e4e) | |
| 4 | 57 | [#3231](https://github.com/npm/cli/issues/3231) | |
| 5 | 58 | feat(publish): add workspace support | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -81,6 +81,30 @@ fail with an HTTP 402 status code (logically enough), unless you use | |||
| 81 | 81 | ||
| 82 | 82 | Management of teams and team memberships is done with the `npm team` command. | |
| 83 | 83 | ||
| 84 | + ### Configuration | ||
| 85 | + | ||
| 86 | + <!-- AUTOGENERATED CONFIG DESCRIPTIONS START --> | ||
| 87 | + <!-- automatically generated, do not edit manually --> | ||
| 88 | + #### `registry` | ||
| 89 | + | ||
| 90 | + * Default: "https://registry.npmjs.org/" | ||
| 91 | + * Type: URL | ||
| 92 | + | ||
| 93 | + The base URL of the npm registry. | ||
| 94 | + | ||
| 95 | + #### `otp` | ||
| 96 | + | ||
| 97 | + * Default: null | ||
| 98 | + * Type: null or String | ||
| 99 | + | ||
| 100 | + This is a one-time password from a two-factor authenticator. It's needed | ||
| 101 | + when publishing or changing package permissions with `npm access`. | ||
| 102 | + | ||
| 103 | + If not set, and a registry response fails with a challenge for a one-time | ||
| 104 | + password, npm will prompt on the command line for one. | ||
| 105 | + | ||
| 106 | + <!-- AUTOGENERATED CONFIG DESCRIPTIONS END --> | ||
| 107 | + | ||
| 84 | 108 | ### See Also | |
| 85 | 109 | ||
| 86 | 110 | * [`libnpmaccess`](https://npm.im/libnpmaccess) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -35,37 +35,46 @@ your existing record. | |||
| 35 | 35 | ||
| 36 | 36 | ### Configuration | |
| 37 | 37 | ||
| 38 | - #### registry | ||
| 38 | + <!-- AUTOGENERATED CONFIG DESCRIPTIONS START --> | ||
| 39 | + <!-- automatically generated, do not edit manually --> | ||
| 40 | + #### `registry` | ||
| 39 | 41 | ||
| 40 | - Default: https://registry.npmjs.org/ | ||
| 42 | + * Default: "https://registry.npmjs.org/" | ||
| 43 | + * Type: URL | ||
| 41 | 44 | ||
| 42 | - The base URL of the npm package registry. If `scope` is also specified, | ||
| 43 | - this registry will only be used for packages with that scope. `scope` defaults | ||
| 44 | - to the scope of the project directory you're currently in, if any. See [`scope`](/using-npm/scope). | ||
| 45 | + The base URL of the npm registry. | ||
| 45 | 46 | ||
| 46 | - #### scope | ||
| 47 | + #### `scope` | ||
| 47 | 48 | ||
| 48 | - Default: none | ||
| 49 | + * Default: the scope of the current project, if any, or "" | ||
| 50 | + * Type: String | ||
| 49 | 51 | ||
| 50 | - If specified, the user and login credentials given will be associated | ||
| 51 | - with the specified scope. See [`scope`](/using-npm/scope). You can use both at the same time, | ||
| 52 | - e.g. | ||
| 52 | + Associate an operation with a scope for a scoped registry. | ||
| 53 | 53 | ||
| 54 | - ```bash | ||
| 55 | - npm adduser --registry=http://myregistry.example.com --scope=@myco | ||
| 54 | + Useful when logging in to or out of a private registry: | ||
| 55 | + | ||
| 56 | + ``` | ||
| 57 | + # log in, linking the scope to the custom registry | ||
| 58 | + npm login --scope=@mycorp --registry=https://registry.mycorp.com | ||
| 59 | + | ||
| 60 | + # log out, removing the link and the auth token | ||
| 61 | + npm logout --scope=@mycorp | ||
| 56 | 62 | ``` | |
| 57 | 63 | ||
| 58 | - This will set a registry for the given scope and login or create a user for | ||
| 59 | - that registry at the same time. | ||
| 64 | + This will cause `@mycorp` to be mapped to the registry for future | ||
| 65 | + installation of packages specified according to the pattern | ||
| 66 | + `@mycorp/package`. | ||
| 60 | 67 | ||
| 61 | - #### auth-type | ||
| 68 | + This will also cause `npm init` to create a scoped package. | ||
| 69 | + | ||
| 70 | + ``` | ||
| 71 | + # accept all defaults, and create a package named "@foo/whatever", | ||
| 72 | + # instead of just named "whatever" | ||
| 73 | + npm init --scope=@foo --yes | ||
| 74 | + ``` | ||
| 62 | 75 | ||
| 63 | - * Default: `'legacy'` | ||
| 64 | - * Type: `'legacy'`, `'sso'`, `'saml'`, `'oauth'` | ||
| 65 | 76 | ||
| 66 | - What authentication strategy to use with `adduser`/`login`. Some npm registries | ||
| 67 | - (for example, npmE) might support alternative auth strategies besides classic | ||
| 68 | - username/password entry in legacy npm. | ||
| 77 | + <!-- AUTOGENERATED CONFIG DESCRIPTIONS END --> | ||
| 69 | 78 | ||
| 70 | 79 | ### See Also | |
| 71 | 80 | ||
@@ -74,3 +83,5 @@ username/password entry in legacy npm. | |||
| 74 | 83 | * [npmrc](/configuring-npm/npmrc) | |
| 75 | 84 | * [npm owner](/commands/npm-owner) | |
| 76 | 85 | * [npm whoami](/commands/npm-whoami) | |
| 86 | + * [npm token](/commands/npm-token) | ||
| 87 | + * [npm profile](/commands/npm-profile) | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -187,6 +187,124 @@ Fail an audit only if the results include a vulnerability with a level of modera | |||
| 187 | 187 | $ npm audit --audit-level=moderate | |
| 188 | 188 | ``` | |
| 189 | 189 | ||
| 190 | + ### Configuration | ||
| 191 | + | ||
| 192 | + <!-- AUTOGENERATED CONFIG DESCRIPTIONS START --> | ||
| 193 | + <!-- automatically generated, do not edit manually --> | ||
| 194 | + #### `audit-level` | ||
| 195 | + | ||
| 196 | + * Default: null | ||
| 197 | + * Type: null, "info", "low", "moderate", "high", "critical", or "none" | ||
| 198 | + | ||
| 199 | + The minimum level of vulnerability for `npm audit` to exit with a non-zero | ||
| 200 | + exit code. | ||
| 201 | + | ||
| 202 | + #### `dry-run` | ||
| 203 | + | ||
| 204 | + * Default: false | ||
| 205 | + * Type: Boolean | ||
| 206 | + | ||
| 207 | + Indicates that you don't want npm to make any changes and that it should | ||
| 208 | + only report what it would have done. This can be passed into any of the | ||
| 209 | + commands that modify your local installation, eg, `install`, `update`, | ||
| 210 | + `dedupe`, `uninstall`, as well as `pack` and `publish`. | ||
| 211 | + | ||
| 212 | + Note: This is NOT honored by other network related commands, eg `dist-tags`, | ||
| 213 | + `owner`, etc. | ||
| 214 | + | ||
| 215 | + #### `force` | ||
| 216 | + | ||
| 217 | + * Default: false | ||
| 218 | + * Type: Boolean | ||
| 219 | + | ||
| 220 | + Removes various protections against unfortunate side effects, common | ||
| 221 | + mistakes, unnecessary performance degradation, and malicious input. | ||
| 222 | + | ||
| 223 | + * Allow clobbering non-npm files in global installs. | ||
| 224 | + * Allow the `npm version` command to work on an unclean git repository. | ||
| 225 | + * Allow deleting the cache folder with `npm cache clean`. | ||
| 226 | + * Allow installing packages that have an `engines` declaration requiring a | ||
| 227 | + different version of npm. | ||
| 228 | + * Allow installing packages that have an `engines` declaration requiring a | ||
| 229 | + different version of `node`, even if `--engine-strict` is enabled. | ||
| 230 | + * Allow `npm audit fix` to install modules outside your stated dependency | ||
| 231 | + range (including SemVer-major changes). | ||
| 232 | + * Allow unpublishing all versions of a published package. | ||
| 233 | + * Allow conflicting peerDependencies to be installed in the root project. | ||
| 234 | + * Implicitly set `--yes` during `npm init`. | ||
| 235 | + | ||
| 236 | + If you don't have a clear idea of what you want to do, it is strongly | ||
| 237 | + recommended that you do not use this option! | ||
| 238 | + | ||
| 239 | + #### `json` | ||
| 240 | + | ||
| 241 | + * Default: false | ||
| 242 | + * Type: Boolean | ||
| 243 | + | ||
| 244 | + Whether or not to output JSON data, rather than the normal output. | ||
| 245 | + | ||
| 246 | + Not supported by all npm commands. | ||
| 247 | + | ||
| 248 | + #### `package-lock-only` | ||
| 249 | + | ||
| 250 | + * Default: false | ||
| 251 | + * Type: Boolean | ||
| 252 | + | ||
| 253 | + If set to true, it will update only the `package-lock.json`, instead of | ||
| 254 | + checking `node_modules` and downloading dependencies. | ||
| 255 | + | ||
| 256 | + #### `omit` | ||
| 257 | + | ||
| 258 | + * Default: 'dev' if the `NODE_ENV` environment variable is set to | ||
| 259 | + 'production', otherwise empty. | ||
| 260 | + * Type: "dev", "optional", or "peer" (can be set multiple times) | ||
| 261 | + | ||
| 262 | + Dependency types to omit from the installation tree on disk. | ||
| 263 | + | ||
| 264 | + Note that these dependencies _are_ still resolved and added to the | ||
| 265 | + `package-lock.json` or `npm-shrinkwrap.json` file. They are just not | ||
| 266 | + physically installed on disk. | ||
| 267 | + | ||
| 268 | + If a package type appears in both the `--include` and `--omit` lists, then | ||
| 269 | + it will be included. | ||
| 270 | + | ||
| 271 | + If the resulting omit list includes `'dev'`, then the `NODE_ENV` environment | ||
| 272 | + variable will be set to `'production'` for all lifecycle scripts. | ||
| 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 | + | ||
| 306 | + <!-- AUTOGENERATED CONFIG DESCRIPTIONS END --> | ||
| 307 | + | ||
| 190 | 308 | ### See Also | |
| 191 | 309 | ||
| 192 | 310 | * [npm install](/commands/npm-install) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,6 +16,26 @@ Note: This command is unaware of workspaces. | |||
| 16 | 16 | ||
| 17 | 17 | Print the folder where npm will install executables. | |
| 18 | 18 | ||
| 19 | + ### Configuration | ||
| 20 | + | ||
| 21 | + <!-- AUTOGENERATED CONFIG DESCRIPTIONS START --> | ||
| 22 | + <!-- automatically generated, do not edit manually --> | ||
| 23 | + #### `global` | ||
| 24 | + | ||
| 25 | + * Default: false | ||
| 26 | + * Type: Boolean | ||
| 27 | + | ||
| 28 | + Operates in "global" mode, so that packages are installed into the `prefix` | ||
| 29 | + folder instead of the current working directory. See | ||
| 30 | + [folders](/configuring-npm/folders) for more on the differences in behavior. | ||
| 31 | + | ||
| 32 | + * packages are installed into the `{prefix}/lib/node_modules` folder, instead | ||
| 33 | + of the current working directory. | ||
| 34 | + * bin files are linked to `{prefix}/bin` | ||
| 35 | + * man pages are linked to `{prefix}/share/man` | ||
| 36 | + | ||
| 37 | + <!-- AUTOGENERATED CONFIG DESCRIPTIONS END --> | ||
| 38 | + | ||
| 19 | 39 | ### See Also | |
| 20 | 40 | ||
| 21 | 41 | * [npm prefix](/commands/npm-prefix) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,24 +21,28 @@ will search for a `package.json` in the current folder and use the `name` proper | |||
| 21 | 21 | ||
| 22 | 22 | ### Configuration | |
| 23 | 23 | ||
| 24 | - #### browser | ||
| 24 | + <!-- AUTOGENERATED CONFIG DESCRIPTIONS START --> | ||
| 25 | + <!-- automatically generated, do not edit manually --> | ||
| 26 | + #### `browser` | ||
| 25 | 27 | ||
| 26 | 28 | * Default: OS X: `"open"`, Windows: `"start"`, Others: `"xdg-open"` | |
| 27 | - * Type: String or Boolean | ||
| 29 | + * Type: null, Boolean, or String | ||
| 28 | 30 | ||
| 29 | - The browser that is called by the `npm bugs` command to open websites. | ||
| 31 | + The browser that is called by npm commands to open websites. | ||
| 30 | 32 | ||
| 31 | 33 | Set to `false` to suppress browser behavior and instead print urls to | |
| 32 | 34 | terminal. | |
| 33 | 35 | ||
| 34 | 36 | Set to `true` to use default system URL opener. | |
| 35 | 37 | ||
| 36 | - #### registry | ||
| 38 | + #### `registry` | ||
| 37 | 39 | ||
| 38 | - * Default: https://registry.npmjs.org/ | ||
| 39 | - * Type: url | ||
| 40 | + * Default: "https://registry.npmjs.org/" | ||
| 41 | + * Type: URL | ||
| 40 | 42 | ||
| 41 | - The base URL of the npm package registry. | ||
| 43 | + The base URL of the npm registry. | ||
| 44 | + | ||
| 45 | + <!-- AUTOGENERATED CONFIG DESCRIPTIONS END --> | ||
| 42 | 46 | ||
| 43 | 47 | ### See Also | |
| 44 | 48 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -75,11 +75,17 @@ verify`. | |||
| 75 | 75 | ||
| 76 | 76 | ### Configuration | |
| 77 | 77 | ||
| 78 | - #### cache | ||
| 78 | + <!-- AUTOGENERATED CONFIG DESCRIPTIONS START --> | ||
| 79 | + <!-- automatically generated, do not edit manually --> | ||
| 80 | + #### `cache` | ||
| 79 | 81 | ||
| 80 | - Default: `~/.npm` on Posix, or `%AppData%/npm-cache` on Windows. | ||
| 82 | + * Default: Windows: `%LocalAppData%\npm-cache`, Posix: `~/.npm` | ||
| 83 | + * Type: Path | ||
| 81 | 84 | ||
| 82 | - The root cache folder. | ||
| 85 | + The location of npm's cache directory. See [`npm | ||
| 86 | + cache`](/commands/npm-cache) | ||
| 87 | + | ||
| 88 | + <!-- AUTOGENERATED CONFIG DESCRIPTIONS END --> | ||
| 83 | 89 | ||
| 84 | 90 | ### See Also | |
| 85 | 91 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments