Skip to content

Commit

Permalink
fix(cli): restore watchspawn context
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Feb 13, 2020
1 parent c98ff7d commit 56145aa
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(this, ...args);
return oldSpawn.apply(childProcess, ...args);
};
const hook = () => {
if (childProcess.spawn === oldSpawn) {
Expand Down

0 comments on commit 56145aa

Please sign in to comment.