We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22d1c84 commit 0083d3cCopy full SHA for 0083d3c
lib/index.js
@@ -1,4 +1,4 @@
1
-const isexe = require('isexe')
+const { isexe, sync: isexeSync } = require('isexe')
2
const { join, delimiter, sep, posix } = require('path')
3
4
const isWindows = process.platform === 'win32'
@@ -86,7 +86,7 @@ const whichSync = (cmd, opt = {}) => {
86
87
for (const ext of pathExt) {
88
const withExt = p + ext
89
- const is = isexe.sync(withExt, { pathExt: pathExtExe, ignoreErrors: true })
+ const is = isexeSync(withExt, { pathExt: pathExtExe, ignoreErrors: true })
90
if (is) {
91
if (!opt.all) {
92
return withExt
0 commit comments