From db5e6cf941736778146630d28e89aa2421a7a5ab Mon Sep 17 00:00:00 2001 From: Mathieu Hofman Date: Wed, 27 Sep 2023 00:37:19 +0000 Subject: [PATCH] fix(internal): tame override mistake in bundle-source --- packages/internal/src/node/createBundles.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/internal/src/node/createBundles.js b/packages/internal/src/node/createBundles.js index e78078bd744e..7464996cf529 100644 --- a/packages/internal/src/node/createBundles.js +++ b/packages/internal/src/node/createBundles.js @@ -1,3 +1,4 @@ +/* global process */ // Use modules not prefixed with `node:` since some deploy scripts may // still be running in esm emulation import path from 'path'; @@ -29,7 +30,8 @@ export const createBundlesFromAbsolute = async sourceBundles => { for (const args of cacheToArgs.values()) { console.log(BUNDLE_SOURCE_PROGRAM, ...args); - const { status } = spawnSync(prog, args, { stdio: 'inherit' }); + const env = { __proto__: process.env, LOCKDOWN_OVERRIDE_TAMING: 'severe' }; + const { status } = spawnSync(prog, args, { stdio: 'inherit', env }); status === 0 || Fail`${q(BUNDLE_SOURCE_PROGRAM)} failed with status ${q(status)}`; }