From 4050aa07622b33b72e34edd80ea15f03d62bd435 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Sun, 16 Jun 2024 06:42:44 +0200 Subject: [PATCH] Look for `npm.cmd` in addition to `npm` on Windows. --- build.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.zig b/build.zig index 25d017e..0fa2690 100644 --- a/build.zig +++ b/build.zig @@ -12,7 +12,7 @@ pub fn build(b: *std.Build) anyerror!void { // TODO: https://github.com/ziglang/zig/issues/15373 const pandoc_prog = b.findProgram(&.{"pandoc"}, &.{}) catch @panic("Could not locate `pandoc` program."); - const npm_prog = b.findProgram(&.{"npm"}, &.{}) catch @panic("Could not locate `npm` program."); + const npm_prog = b.findProgram(&.{"npm", "npm.cmd"}, &.{}) catch @panic("Could not locate `npm` program."); const code_prog = b.findProgram(&.{"code"}, &.{}) catch @panic("Could not locate `code` program."); const install_step = b.getInstallStep();