Skip to content

Commit

Permalink
[cli] Pass through stdio streams to child process when running sanity…
Browse files Browse the repository at this point in the history
… exec (#1069)
  • Loading branch information
bjoerge committed Nov 29, 2018
1 parent 03ec852 commit c924c5f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/@sanity/core/src/actions/exec/execScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ module.exports = async args => {
.concat(scriptPath)
.concat(args.extraArguments || [])

const proc = spawn(process.argv[0], nodeArgs)

proc.stdout.pipe(process.stdout)
proc.stderr.pipe(process.stderr)
const proc = spawn(process.argv[0], nodeArgs, {stdio: 'inherit'})
proc.on('close', process.exit)
}

0 comments on commit c924c5f

Please sign in to comment.