@@ -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
0 commit comments