Skip to content

Commit

Permalink
fix: update for breaking isexe api
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Aug 29, 2023
1 parent 22d1c84 commit 0083d3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const isexe = require('isexe')
const { isexe, sync: isexeSync } = require('isexe')
const { join, delimiter, sep, posix } = require('path')

const isWindows = process.platform === 'win32'
Expand Down Expand Up @@ -86,7 +86,7 @@ const whichSync = (cmd, opt = {}) => {

for (const ext of pathExt) {
const withExt = p + ext
const is = isexe.sync(withExt, { pathExt: pathExtExe, ignoreErrors: true })
const is = isexeSync(withExt, { pathExt: pathExtExe, ignoreErrors: true })
if (is) {
if (!opt.all) {
return withExt
Expand Down

0 comments on commit 0083d3c

Please sign in to comment.