@vercel/redwood 2.4.7 → 2.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +8 -12
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -2512,21 +2512,17 @@ var build = async ({
2512
2512
  config,
2513
2513
  meta
2514
2514
  );
2515
- const spawnOpts = (0, import_build_utils.getSpawnOptions)(meta, nodeVersion);
2516
- if (!spawnOpts.env) {
2517
- spawnOpts.env = {};
2518
- }
2519
2515
  const {
2520
2516
  cliType,
2521
2517
  lockfileVersion,
2522
2518
  packageJsonPackageManager,
2523
2519
  turboSupportsCorepackHome
2524
2520
  } = await (0, import_build_utils.scanParentDirs)(entrypointFsDirname, true);
2525
- spawnOpts.env = (0, import_build_utils.getEnvForPackageManager)({
2521
+ const spawnEnv = (0, import_build_utils.getEnvForPackageManager)({
2526
2522
  cliType,
2527
2523
  lockfileVersion,
2528
2524
  packageJsonPackageManager,
2529
- env: spawnOpts.env || {},
2525
+ env: process.env,
2530
2526
  turboSupportsCorepackHome,
2531
2527
  projectCreatedAt: config.projectSettings?.createdAt
2532
2528
  });
@@ -2534,7 +2530,7 @@ var build = async ({
2534
2530
  if (installCommand.trim()) {
2535
2531
  console.log(`Running "install" command: \`${installCommand}\`...`);
2536
2532
  await (0, import_build_utils.execCommand)(installCommand, {
2537
- ...spawnOpts,
2533
+ env: spawnEnv,
2538
2534
  cwd: entrypointFsDirname
2539
2535
  });
2540
2536
  } else {
@@ -2544,7 +2540,7 @@ var build = async ({
2544
2540
  await (0, import_build_utils.runNpmInstall)(
2545
2541
  entrypointFsDirname,
2546
2542
  [],
2547
- spawnOpts,
2543
+ { env: spawnEnv },
2548
2544
  meta,
2549
2545
  config.projectSettings?.createdAt
2550
2546
  );
@@ -2559,7 +2555,7 @@ var build = async ({
2559
2555
  if (buildCommand) {
2560
2556
  (0, import_build_utils.debug)(`Executing build command "${buildCommand}"`);
2561
2557
  await (0, import_build_utils.execCommand)(buildCommand, {
2562
- ...spawnOpts,
2558
+ env: spawnEnv,
2563
2559
  cwd: workPath
2564
2560
  });
2565
2561
  } else if (hasScript("vercel-build", pkg)) {
@@ -2567,7 +2563,7 @@ var build = async ({
2567
2563
  await (0, import_build_utils.runPackageJsonScript)(
2568
2564
  workPath,
2569
2565
  "vercel-build",
2570
- spawnOpts,
2566
+ { env: spawnEnv },
2571
2567
  config.projectSettings?.createdAt
2572
2568
  );
2573
2569
  } else if (hasScript("build", pkg)) {
@@ -2575,7 +2571,7 @@ var build = async ({
2575
2571
  await (0, import_build_utils.runPackageJsonScript)(
2576
2572
  workPath,
2577
2573
  "build",
2578
- spawnOpts,
2574
+ { env: spawnEnv },
2579
2575
  config.projectSettings?.createdAt
2580
2576
  );
2581
2577
  } else {
@@ -2593,7 +2589,7 @@ var build = async ({
2593
2589
  cmd = "yarn rw deploy vercel";
2594
2590
  }
2595
2591
  await (0, import_build_utils.execCommand)(cmd, {
2596
- ...spawnOpts,
2592
+ env: spawnEnv,
2597
2593
  cwd: workPath
2598
2594
  });
2599
2595
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/redwood",
3
- "version": "2.4.7",
3
+ "version": "2.4.8",
4
4
  "main": "./dist/index.js",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://vercel.com/docs",
@@ -25,7 +25,7 @@
25
25
  "execa": "3.2.0",
26
26
  "fs-extra": "11.1.0",
27
27
  "jest-junit": "16.0.0",
28
- "@vercel/build-utils": "13.2.7",
28
+ "@vercel/build-utils": "13.2.8",
29
29
  "@vercel/routing-utils": "5.3.2"
30
30
  },
31
31
  "scripts": {