@pnpm/config
Advanced tools
Comparing version 4.0.0-3 to 4.0.0-4
@@ -25,2 +25,3 @@ import { IncludedDependencies, Registries } from '@pnpm/types'; | ||
savePeer?: boolean; | ||
saveWorkspaceProtocol?: boolean; | ||
production?: boolean; | ||
@@ -79,3 +80,3 @@ development?: boolean; | ||
independentLeaves?: boolean; | ||
packageImportMethod?: 'auto' | 'hardlink' | 'copy' | 'reflink'; | ||
packageImportMethod?: 'auto' | 'hardlink' | 'copy' | 'clone'; | ||
hoistPattern?: string; | ||
@@ -82,0 +83,0 @@ useStoreServer?: boolean; |
@@ -46,3 +46,3 @@ "use strict"; | ||
'offline': Boolean, | ||
'package-import-method': ['auto', 'hardlink', 'reflink', 'copy'], | ||
'package-import-method': ['auto', 'hardlink', 'clone', 'copy'], | ||
'pending': Boolean, | ||
@@ -59,2 +59,3 @@ 'pnpmfile': String, | ||
'save-peer': Boolean, | ||
'save-workspace-protocol': Boolean, | ||
'shamefully-flatten': Boolean, | ||
@@ -140,4 +141,5 @@ 'shamefully-hoist': Boolean, | ||
'registry': npmDefaults.registry, | ||
'resolution-strategy': 'fast', | ||
'resolution-strategy': 'fewer-dependencies', | ||
'save-peer': false, | ||
'save-workspace-protocol': true, | ||
'shamefully-hoist': false, | ||
@@ -170,5 +172,4 @@ 'shared-workspace-shrinkwrap': true, | ||
: `${packageManager.name}/${packageManager.version} npm/? node/${process.version} ${process.platform} ${process.arch}`; | ||
const defaultRegistry = getScopeRegistries_1.normalizeRegistry(pnpmConfig.registry || 'https://registry.npmjs.org/'); | ||
pnpmConfig.rawNpmConfig = Object.assign.apply(Object, [ | ||
{ registry: defaultRegistry }, | ||
{ registry: 'https://registry.npmjs.org/' }, | ||
...npmConfig.list, | ||
@@ -178,3 +179,3 @@ cliArgs, | ||
]); // tslint:disable-line:no-any | ||
pnpmConfig.registries = Object.assign({ default: defaultRegistry }, getScopeRegistries_1.default(pnpmConfig.rawNpmConfig)); | ||
pnpmConfig.registries = Object.assign({ default: getScopeRegistries_1.normalizeRegistry(pnpmConfig.rawNpmConfig.registry) }, getScopeRegistries_1.default(pnpmConfig.rawNpmConfig)); | ||
const npmGlobalPrefix = pnpmConfig.rawNpmConfig['pnpm-prefix'] || | ||
@@ -181,0 +182,0 @@ (process.platform !== 'win32' |
{ | ||
"name": "@pnpm/config", | ||
"version": "4.0.0-3", | ||
"version": "4.0.0-4", | ||
"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
22545
470
317
7
8
2
32
51816