Skip to content

Commit

Permalink
feat: upgrade to which 0.3.0 (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret authored Apr 5, 2023
1 parent 786d892 commit f0deaab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export { readerFromStreamReader } from "https://deno.land/[email protected]/streams/re
export { writeAll, writeAllSync } from "https://deno.land/[email protected]/streams/write_all.ts";
export { default as localDataDir } from "https://deno.land/x/[email protected]/data_local_dir/mod.ts";
export { outdent } from "https://deno.land/x/[email protected]/src/index.ts";
export { RealEnvironment as DenoWhichRealEnvironment, which, whichSync } from "https://deno.land/x/which@0.2.2/mod.ts";
export { RealEnvironment as DenoWhichRealEnvironment, which, whichSync } from "https://deno.land/x/which@0.3.0/mod.ts";
4 changes: 1 addition & 3 deletions src/shell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -768,9 +768,7 @@ async function resolveCommand(commandName: string, context: Context): Promise<Re
const realEnvironment = new DenoWhichRealEnvironment();
const commandPath = await which(commandName, {
os: Deno.build.os,
fileExists(path: string) {
return realEnvironment.fileExists(path);
},
stat: realEnvironment.stat,
env(key) {
return context.getVar(key);
},
Expand Down

0 comments on commit f0deaab

Please sign in to comment.