Skip to content

Commit b47463d

Browse files
committed
Fix windows resolution
1 parent e1e4558 commit b47463d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

binary/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
build/
2+
nvu-binary*

binary/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,8 @@ func runNvuCli() {
956956
// Execute script directly - shebang will find node in modified PATH
957957
if runtime.GOOS == "windows" {
958958
// Windows: spawn and wait (can't use syscall.Exec)
959-
cmd := exec.Command(nvuScript, os.Args[1:]...)
959+
// Windows can't execute .js files directly, need to use node
960+
cmd := exec.Command(nodePath, args...)
960961
cmd.Env = env
961962
cmd.Stdin = os.Stdin
962963
cmd.Stdout = os.Stdout

0 commit comments

Comments
 (0)