Skip to content

Commit

Permalink
Use dual/execute, see phetsims/chipper#1018
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Jul 13, 2021
1 parent 6284009 commit 896bf3e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/dual/execute.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const child_process = require( 'child_process' );
const winston = require( 'winston' );
const _ = require( 'lodash' ); // eslint-disable-line
const assert = require( 'assert' );
const grunt = require( 'grunt' );

/**
* Executes a command, with specific arguments and in a specific directory (cwd).
Expand Down Expand Up @@ -85,9 +86,11 @@ module.exports = function( cmd, args, cwd, options ) {

process.stderr.on( 'data', data => {
stderr += data;
grunt.log.debug( `stderr: ${data}` );
} );
process.stdout.on( 'data', data => {
stdout += data;
grunt.log.debug( `stdout: ${data}` );
} );

process.on( 'close', code => {
Expand Down

0 comments on commit 896bf3e

Please sign in to comment.