Skip to content

Commit

Permalink
Stops execa from "preferLocal"
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanis committed Mar 9, 2019
1 parent 35df709 commit 86b09af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e2e/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export type RunResult = ExecaReturns & {
};
export const run = (cmd: string, cwd?: Config.Path): RunResult => {
const args = cmd.split(/\s/).slice(1);
const spawnOptions = {cwd, reject: false};
const spawnOptions = {cwd, preferLocal: false, reject: false};
const result = spawnSync(cmd.split(/\s/)[0], args, spawnOptions) as RunResult;

// For compat with cross-spawn
Expand Down

0 comments on commit 86b09af

Please sign in to comment.