@pnpm/config
Advanced tools
Comparing version 3.3.4 to 3.4.0
@@ -15,2 +15,1 @@ "use strict"; | ||
exports.default = findBestGlobalPrefixOnWindows; | ||
//# sourceMappingURL=findBestGlobalPrefixOnWindows.js.map |
@@ -17,2 +17,1 @@ "use strict"; | ||
exports.normalizeRegistry = normalizeRegistry; | ||
//# sourceMappingURL=getScopeRegistries.js.map |
@@ -13,1 +13,2 @@ import { PnpmConfigs } from './PnpmConfigs'; | ||
export default _default; | ||
export declare function findWorkspacePrefix(prefix: string): Promise<string | undefined>; |
@@ -87,7 +87,5 @@ "use strict"; | ||
catch (err) { } // tslint:disable-line:no-empty | ||
const workspaceManifestLocation = cliArgs['global'] // tslint:disable-line | ||
const workspacePrefix = cliArgs['global'] // tslint:disable-line | ||
? null | ||
: (await findUp(WORKSPACE_MANIFEST_FILENAME, { | ||
cwd: cliArgs['prefix'] || process.cwd(), | ||
}) || null); | ||
: (await findWorkspacePrefix(cliArgs['prefix'] || process.cwd()) || null); | ||
const npmConfig = loadNpmConf(cliArgs, exports.types, { | ||
@@ -117,3 +115,3 @@ 'bail': true, | ||
'workspace-concurrency': 4, | ||
'workspace-prefix': workspaceManifestLocation && path.dirname(workspaceManifestLocation), | ||
'workspace-prefix': workspacePrefix, | ||
}); | ||
@@ -245,4 +243,14 @@ process.execPath = originalExecPath; | ||
pnpmConfig.sideEffectsCacheWrite = pnpmConfig.sideEffectsCache; | ||
if (!pnpmConfig.ignoreScripts && pnpmConfig.workspacePrefix) { | ||
pnpmConfig.extraBinPaths = [path.join(pnpmConfig.workspacePrefix, 'node_modules', '.bin')]; | ||
} | ||
else { | ||
pnpmConfig.extraBinPaths = []; | ||
} | ||
return pnpmConfig; | ||
}; | ||
//# sourceMappingURL=index.js.map | ||
async function findWorkspacePrefix(prefix) { | ||
const workspaceManifestLocation = await findUp(WORKSPACE_MANIFEST_FILENAME, { cwd: prefix }); | ||
return workspaceManifestLocation && path.dirname(workspaceManifestLocation); | ||
} | ||
exports.findWorkspacePrefix = findWorkspacePrefix; |
@@ -5,2 +5,3 @@ import { Registries } from '@pnpm/types'; | ||
cliArgs: Record<string, any>; | ||
extraBinPaths: string[]; | ||
filter: string[]; | ||
@@ -7,0 +8,0 @@ rawNpmConfig: Record<string, any>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=PnpmConfigs.js.map |
{ | ||
"name": "@pnpm/config", | ||
"version": "3.3.4", | ||
"version": "3.4.0", | ||
"description": "Gets configs for pnpm", | ||
@@ -46,8 +46,8 @@ "main": "lib/index.js", | ||
"rimraf": "2.6.3", | ||
"tape": "4.10.1", | ||
"tape": "4.10.2", | ||
"tempy": "0.3.0", | ||
"ts-node": "8.1.0", | ||
"tslint": "5.16.0", | ||
"typescript": "3.4.5" | ||
"ts-node": "8.2.0", | ||
"tslint": "5.17.0", | ||
"typescript": "3.5.1" | ||
} | ||
} |
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
377
18815
11