Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRuy Adorno <ruyadorno@hotmail.com>2022-06-02 00:11:16 +0300
committerGitHub <noreply@github.com>2022-06-02 00:11:16 +0300
commitaee6fc857458ac660bf90ecd0af94212c7269fd7 (patch)
tree464eec61f9a60ea2e97d76ffd04f6a886f6b1396 /docs
parent66981ecf08b888fde9188c162cc928fff7d6d9d6 (diff)
feat(init): reify on init new workspace (#4892)
Adds a minimalistic reify step that updates the installed tree after initializing a new workspace. Moved the shared update logic from `lib/commands/version.js` to a `lib/workspaces/update-workspaces.js` module that is reused between both `npm version` and `npm init`. Relates to: https://github.com/npm/rfcs/issues/556 Relates to: https://github.com/npm/cli/pull/4588
Diffstat (limited to 'docs')
-rw-r--r--docs/content/commands/npm-init.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/content/commands/npm-init.md b/docs/content/commands/npm-init.md
index 5a7dd4c97..35343cceb 100644
--- a/docs/content/commands/npm-init.md
+++ b/docs/content/commands/npm-init.md
@@ -253,6 +253,17 @@ This value is not exported to the environment for child processes.
<!-- automatically generated, do not edit manually -->
<!-- see lib/utils/config/definitions.js -->
+#### `workspaces-update`
+
+* Default: true
+* Type: Boolean
+
+If set to true, the npm cli will run an update after operations that may
+possibly change the workspaces installed to the `node_modules` folder.
+
+<!-- automatically generated, do not edit manually -->
+<!-- see lib/utils/config/definitions.js -->
+
#### `include-workspace-root`
* Default: false