mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 03:48:56 +00:00
Fix(windows) search correct path for esbuild(.exe|.cmd) (#10302)
This commit is contained in:
@@ -3,7 +3,13 @@ $npm_client = "npm"
|
||||
# & ${npm_client} i
|
||||
|
||||
$root = Join-Path (Split-Path -Path $MyInvocation.MyCommand.Definition -Parent) "..\"
|
||||
|
||||
# search for .cmd or .exe
|
||||
$esbuild = Join-Path $root "node_modules\.bin\esbuild.cmd"
|
||||
if (!(Test-Path $esbuild)) {
|
||||
$esbuild = Join-Path $root "node_modules\.bin\esbuild.exe"
|
||||
}
|
||||
|
||||
|
||||
$env:NODE_ENV = "production"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user