Skip to content

Commit

Permalink
fix(internal): sever override taming for bundle-source
Browse files Browse the repository at this point in the history
Work around babel dep override mistake
  • Loading branch information
mhofman committed Sep 27, 2023
1 parent 1bc91fc commit 791119d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/internal/src/node/createBundles.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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)}`;
}
Expand Down

0 comments on commit 791119d

Please sign in to comment.