Skip to content

Commit

Permalink
enable shell for Windows only
Browse files Browse the repository at this point in the history
  • Loading branch information
derevnjuk committed Apr 15, 2024
1 parent 7c2bf27 commit 04ed25e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,11 @@ function npmbin (name) {
}

function shell () {
return os.platform() === 'android' ? 'sh' : true
switch (os.platform()) {
case 'win32': return true
case 'android': return 'sh'
default: return undefined
}
}

function resolveTargets (targets, all, napi, electronCompat) {
Expand Down

0 comments on commit 04ed25e

Please sign in to comment.