@vercel/build-utils
Advanced tools
Comparing version 2.6.1-canary.1 to 2.6.1-canary.2
@@ -216,2 +216,6 @@ "use strict"; | ||
commandArgs = ['install', ...args]; | ||
// Yarn v2 PnP mode may be activated, so force "node-modules" linker style | ||
if (!env.YARN_NODE_LINKER) { | ||
env.YARN_NODE_LINKER = 'node-modules'; | ||
} | ||
} | ||
@@ -280,2 +284,7 @@ if (process.env.NPM_ONLY_PRODUCTION) { | ||
else { | ||
// Yarn v2 PnP mode may be activated, so force "node-modules" linker style | ||
const env = { ...spawnOpts === null || spawnOpts === void 0 ? void 0 : spawnOpts.env }; | ||
if (!env.YARN_NODE_LINKER) { | ||
env.YARN_NODE_LINKER = 'node-modules'; | ||
} | ||
const prettyCommand = `yarn run ${scriptName}`; | ||
@@ -285,2 +294,3 @@ console.log(`Running "${prettyCommand}"`); | ||
...spawnOpts, | ||
env, | ||
cwd: destPath, | ||
@@ -287,0 +297,0 @@ prettyCommand, |
{ | ||
"name": "@vercel/build-utils", | ||
"version": "2.6.1-canary.1", | ||
"version": "2.6.1-canary.2", | ||
"license": "MIT", | ||
@@ -53,3 +53,3 @@ "main": "./dist/index.js", | ||
}, | ||
"gitHead": "503b9a242976c20c48d691c72de6017da65f387a" | ||
"gitHead": "c0c57889c84058257cb7a36c7ec01943ef5bfce1" | ||
} |
Sorry, the diff of this file is too big to display
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
1267912
30059