Skip to content

Commit

Permalink
Modifies binary and script resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Kneier committed Jun 15, 2023
1 parent cf8744b commit ca28b53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/de/solugo/gradle/nodejs/NodeJsExtension.kt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class NodeJsExtension(private val project: Project) {
instance.modulesFolder.resolve(".bin"),
workingDir.resolve("node_modules").resolve(".bin"),
) {
it.isFile && when (NodeJsRegistry.platform) {
when (NodeJsRegistry.platform) {
NodeJsRegistry.Platform.WINDOWS -> it.name == "$name.cmd" || it.name == "$name.exe"
else -> it.name == "$name.sh" || it.name == name
}
Expand Down

0 comments on commit ca28b53

Please sign in to comment.