Skip to content

Commit

Permalink
fix(internal): tame override mistake in bundle-source
Browse files Browse the repository at this point in the history
  • Loading branch information
mhofman committed Sep 27, 2023
1 parent 275dd0a commit db5e6cf
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 db5e6cf

Please sign in to comment.