@pnpm/config
Advanced tools
Comparing version 3.4.1 to 3.4.2
@@ -74,2 +74,16 @@ "use strict"; | ||
const command = opts.command || []; | ||
switch (command[command.length - 1]) { | ||
case 'update': | ||
if (typeof cliArgs['frozen-lockfile'] !== 'undefined') { | ||
const err = new Error('The "frozen-lockfile" option cannot be used with the "update" command'); | ||
err['code'] = 'ERR_PNPM_CONFIG_BAD_OPTION'; // tslint:disable-line:no-string-literal | ||
throw err; | ||
} | ||
if (typeof cliArgs['prefer-frozen-lockfile'] !== 'undefined') { | ||
const err = new Error('The "prefer-frozen-lockfile" option cannot be used with the "update" command'); | ||
err['code'] = 'ERR_PNPM_CONFIG_BAD_OPTION'; // tslint:disable-line:no-string-literal | ||
throw err; | ||
} | ||
break; | ||
} | ||
// This is what npm does as well, overriding process.execPath with the resolved location of Node. | ||
@@ -76,0 +90,0 @@ // The value of process.execPath is changed only for the duration of config initialization. |
{ | ||
"name": "@pnpm/config", | ||
"version": "3.4.1", | ||
"version": "3.4.2", | ||
"description": "Gets configs for pnpm", | ||
@@ -46,5 +46,5 @@ "main": "lib/index.js", | ||
"rimraf": "2.6.3", | ||
"tape": "4.10.2", | ||
"tape": "4.11.0", | ||
"tempy": "0.3.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19491
391