@npmcli/config 10.5.0 → 10.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -187,6 +187,20 @@ const definitions = {
187
187
  `,
188
188
  flatten,
189
189
  }),
190
+ 'allow-git': new Definition('allow-git', {
191
+ default: 'all',
192
+ type: ['all', 'none', 'root'],
193
+ description: `
194
+ Limits the ability for npm to fetch dependencies from git references.
195
+ That is, dependencies that point to a git repo instead of a version or semver range.
196
+ Please note that this could leave your tree incomplete and some packages may not function as intended or designed.
197
+
198
+ \`all\` allows any git dependencies to be fetched and installed.
199
+ \`none\` prevents any git dependencies from being fetched and installed.
200
+ \`root\` only allows git dependencies defined in your project's package.json to be fetched installed. Also allows git dependencies to be fetched for other commands like \`npm view\`
201
+ `,
202
+ flatten,
203
+ }),
190
204
  also: new Definition('also', {
191
205
  default: null,
192
206
  type: [null, 'dev', 'development'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npmcli/config",
3
- "version": "10.5.0",
3
+ "version": "10.6.0",
4
4
  "files": [
5
5
  "bin/",
6
6
  "lib/"