@pnpm/config
Advanced tools
Comparing version 5.0.1 to 5.0.2
import { IncludedDependencies, Registries } from '@pnpm/types'; | ||
export interface Config { | ||
allowNew: boolean; | ||
auditLevel?: 'low' | 'moderate' | 'high' | 'critical'; | ||
bail: boolean; | ||
@@ -5,0 +6,0 @@ color: 'always' | 'auto' | 'never'; |
@@ -20,2 +20,3 @@ "use strict"; | ||
exports.types = Object.assign({ | ||
'audit-level': ['low', 'moderate', 'high', 'critical'], | ||
'background': Boolean, | ||
@@ -125,2 +126,5 @@ 'bail': Boolean, | ||
catch (err) { } // tslint:disable-line:no-empty | ||
if (cliArgs['dir']) { | ||
cliArgs['prefix'] = cliArgs['dir']; // the npm config system still expects `prefix` | ||
} | ||
const dir = (_d = cliArgs['dir'], (_d !== null && _d !== void 0 ? _d : process.cwd())); | ||
@@ -130,3 +134,2 @@ const workspaceDir = cliArgs['global'] // tslint:disable-line | ||
: await findWorkspacePrefix(dir); | ||
cliArgs['prefix'] = dir; // the npm config system still expects `prefix` | ||
const npmConfig = loadNpmConf(cliArgs, exports.types, { | ||
@@ -133,0 +136,0 @@ 'bail': true, |
{ | ||
"name": "@pnpm/config", | ||
"version": "5.0.1", | ||
"version": "5.0.2", | ||
"description": "Gets configuration options for pnpm", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
24357
509
318
9
3
33
5