@pnpm/config
Advanced tools
Comparing version 4.1.2 to 4.1.3
@@ -10,3 +10,2 @@ "use strict"; | ||
const path = require("path"); | ||
const pathAbsolute = require("path-absolute"); | ||
const whichcb = require("which"); | ||
@@ -84,3 +83,2 @@ const findBestGlobalPrefixOnWindows_1 = require("./findBestGlobalPrefixOnWindows"); | ||
exports.default = async (opts) => { | ||
var _a, _b; | ||
const packageManager = opts && opts.packageManager || { name: 'pnpm', version: 'undefined' }; | ||
@@ -158,2 +156,3 @@ const cliArgs = opts && opts.cliArgs || {}; | ||
'userconfig': npmDefaults.userconfig, | ||
'virtual-store-dir': 'node_modules/.pnpm', | ||
'workspace-concurrency': 4, | ||
@@ -276,5 +275,2 @@ 'workspace-prefix': workspacePrefix, | ||
} | ||
if (pnpmConfig.virtualStoreDir) { | ||
pnpmConfig.virtualStoreDir = pathAbsolute(pnpmConfig.virtualStoreDir, pnpmConfig.sharedWorkspaceLockfile ? (_b = (_a = pnpmConfig.lockfileDirectory, (_a !== null && _a !== void 0 ? _a : workspacePrefix)), (_b !== null && _b !== void 0 ? _b : pnpmConfig.prefix)) : pnpmConfig.prefix); | ||
} | ||
pnpmConfig.packageManager = packageManager; | ||
@@ -281,0 +277,0 @@ if (pnpmConfig.only === 'prod' || pnpmConfig.only === 'production' || !pnpmConfig.only && pnpmConfig.production) { |
{ | ||
"name": "@pnpm/config", | ||
"version": "4.1.2", | ||
"version": "4.1.3", | ||
"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
23311
492