Skip to content

Commit

Permalink
fix(cli): fix inner spawnhook call
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Feb 13, 2020
1 parent 9a8877a commit 70aa292
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/spawnHook.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const watchSpawn = (...args) => {
console.log("spawn called");
console.log(...args);

return oldSpawn.apply(childProcess, ...args);
return oldSpawn.call(childProcess, ...args);
};
const hook = () => {
if (childProcess.spawn === oldSpawn) {
Expand Down

0 comments on commit 70aa292

Please sign in to comment.