chore: fix esbuild path on win
This commit is contained in:
parent
1365558a95
commit
fd0f9a6b8d
2 changed files with 2 additions and 2 deletions
|
|
@ -76,7 +76,7 @@ fn innerInitSingle(b: *std.Build, build_item: Build) !Output {
|
|||
fn resolveHostEsbuild(plugin_dep: *std.Build.Dependency) ?std.Build.LazyPath {
|
||||
const host_dep = plugin_dep.builder.lazyDependency(host_esbuild.depName(), .{}) orelse return null;
|
||||
// zig fetch strips the npm tarball's top-level `package/` directory.
|
||||
return host_dep.path(plugin_dep.builder.fmt("bin/{s}", .{host_esbuild.exeName()}));
|
||||
return host_dep.path(plugin_dep.builder.fmt("{s}", .{host_esbuild.exeName()}));
|
||||
}
|
||||
|
||||
fn deriveName(b: *std.Build, self: Build, step: *std.Build.Step) []const u8 {
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ pub fn depName() []const u8 {
|
|||
|
||||
/// Filename of the esbuild executable inside the npm package tarball.
|
||||
pub fn exeName() []const u8 {
|
||||
return if (builtin.os.tag == .windows) "esbuild.exe" else "esbuild";
|
||||
return if (builtin.os.tag == .windows) "esbuild.exe" else "bin/esbuild";
|
||||
}
|
||||
|
||||
fn unsupported() noreturn {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue