Skip to content

Commit

Permalink
Look for npm.cmd in addition to npm on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Jun 16, 2024
1 parent 42e6985 commit 4050aa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 4050aa0

Please sign in to comment.