@pnpm/config
Advanced tools
Comparing version 2.0.1 to 2.1.0
@@ -56,2 +56,3 @@ "use strict"; | ||
'side-effects-cache-readonly': Boolean, | ||
'sort': Boolean, | ||
'store': path, | ||
@@ -97,2 +98,3 @@ 'use-running-store-server': Boolean, | ||
'shrinkwrap': npmDefaults.shrinkwrap, | ||
'sort': true, | ||
'unsafe-perm': npmDefaults['unsafe-perm'], | ||
@@ -115,5 +117,6 @@ 'userconfig': npmDefaults.userconfig, | ||
pnpmConfig.rawNpmConfig = Object.assign.apply(Object, npmConfig.list.reverse().concat([cliArgs])); | ||
const npmGlobalPrefix = process.env.APPDATA | ||
? path.join(process.env.APPDATA, 'npm') | ||
: npmConfig.globalPrefix; | ||
const npmGlobalPrefix = pnpmConfig.rawNpmConfig['pnpm-prefix'] || | ||
(process.env.APPDATA | ||
? path.join(process.env.APPDATA, 'npm') | ||
: npmConfig.globalPrefix); | ||
pnpmConfig.globalBin = process.platform === 'win32' | ||
@@ -120,0 +123,0 @@ ? npmGlobalPrefix |
@@ -1,6 +0,6 @@ | ||
export interface PnpmConfigs { | ||
export interface PnpmConfigs extends Record<string, any> { | ||
bail: boolean; | ||
cliArgs: object; | ||
cliArgs: Record<string, any>; | ||
filter: string[]; | ||
rawNpmConfig: object; | ||
rawNpmConfig: Record<string, any>; | ||
globalPrefix: string; | ||
@@ -64,2 +64,3 @@ globalBin: string; | ||
linkWorkspacePackages: boolean; | ||
sort: boolean; | ||
} |
{ | ||
"name": "@pnpm/config", | ||
"version": "2.0.1", | ||
"version": "2.1.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
18458
243