@pnpm/config
Advanced tools
Comparing version 3.0.0-2 to 3.0.0
@@ -131,5 +131,11 @@ "use strict"; | ||
: pnpmConfig['lockfileDirectory']; | ||
pnpmConfig.lockfile = typeof pnpmConfig['lockfile'] === 'undefined' | ||
? pnpmConfig.shrinkwrap | ||
: pnpmConfig['lockfile']; | ||
pnpmConfig.useLockfile = (() => { | ||
if (typeof pnpmConfig['lockfile'] === 'boolean') | ||
return pnpmConfig['lockfile']; | ||
if (typeof pnpmConfig['packageLock'] === 'boolean') | ||
return pnpmConfig['packageLock']; | ||
if (typeof pnpmConfig['shrinkwrap'] === 'boolean') | ||
return pnpmConfig['shrinkwrap']; | ||
return false; | ||
})(); | ||
pnpmConfig.lockfileOnly = typeof pnpmConfig['lockfileOnly'] === 'undefined' | ||
@@ -204,5 +210,2 @@ ? pnpmConfig.shrinkwrapOnly | ||
} | ||
if (!pnpmConfig.packageLock && pnpmConfig.lockfile) { | ||
pnpmConfig.lockfile = false; | ||
} | ||
if (typeof pnpmConfig.filter === 'string') { | ||
@@ -209,0 +212,0 @@ pnpmConfig.filter = pnpmConfig.filter.split(' '); |
@@ -69,3 +69,4 @@ import { Registries } from '@pnpm/types'; | ||
sharedWorkspaceLockfile: boolean; | ||
useLockfile: boolean; | ||
registries: Registries; | ||
} |
{ | ||
"name": "@pnpm/config", | ||
"version": "3.0.0-2", | ||
"version": "3.0.0", | ||
"description": "Gets configs for pnpm", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
24720
312
1