Skip to content

Commit 0083d3c

Browse files
committed
fix: update for breaking isexe api
1 parent 22d1c84 commit 0083d3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const isexe = require('isexe')
1+
const { isexe, sync: isexeSync } = require('isexe')
22
const { join, delimiter, sep, posix } = require('path')
33

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

8787
for (const ext of pathExt) {
8888
const withExt = p + ext
89-
const is = isexe.sync(withExt, { pathExt: pathExtExe, ignoreErrors: true })
89+
const is = isexeSync(withExt, { pathExt: pathExtExe, ignoreErrors: true })
9090
if (is) {
9191
if (!opt.all) {
9292
return withExt

0 commit comments

Comments
 (0)