Skip to content

Commit bca2abf

Browse files
committed
fix: node env, bad conflicts
1 parent 744a541 commit bca2abf

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/acceptance-tests/pkg-tests-core/sources/utils/makeTemporaryEnv.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ const mte = generatePkgDriver({
5252
[`FORCE_COLOR`]: `0`,
5353
// Otherwise the output wouldn't be the same on CI vs non-CI
5454
[`YARN_ENABLE_INLINE_BUILDS`]: `true`,
55-
[`YARN_PREFER_AGGREGATE_CACHE_INFO`]: `false`,
5655
// Otherwise we would more often test the fallback rather than the real logic
5756
[`YARN_PNP_FALLBACK_MODE`]: `none`,
5857
// Otherwise tests fail on systems where this is globally set to true

packages/yarnpkg-core/sources/scriptUtils.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,9 @@ export async function prepareExternalProject(cwd: PortablePath, outputPath: Port
400400
}],
401401

402402
[PackageManager.Pnpm, async () => {
403+
// Remove environment variables that limit the install to just production dependencies
404+
delete env.NODE_ENV;
405+
403406
const install = await execUtils.pipevp(`pnpm`, [`install`], {cwd, env, stdin, stdout, stderr, end: execUtils.EndStrategy.ErrorCode});
404407
if (install.code !== 0)
405408
return install.code;

0 commit comments

Comments
 (0)