Skip to content

Commit

Permalink
provide env through to grunt tasks, phetsims/perennial#362
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Kauzmann <michael.kauzmann@colorado.edu>
  • Loading branch information
zepumph committed Sep 24, 2024
1 parent 7154625 commit bdb4ed9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/grunt/gruntSpawn.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ module.exports = function spawn( grunt, command, args, cwd, preHook ) {
const argsString = args.map( arg => `"${arg}"` ).join( ' ' );
const spawned = child_process.spawn( command, args, {
cwd: cwd,
shell: isWindows // shell is required for a NodeJS security update, see https://github.com/phetsims/perennial/issues/359
shell: isWindows, // shell is required for a NodeJS security update, see https://github.com/phetsims/perennial/issues/359
env: Object.create( process.env )
} );
preHook && preHook( argsString );

Expand Down

0 comments on commit bdb4ed9

Please sign in to comment.