-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
61 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# esbuild | ||
|
||
This is the Windows ARM 64-bit binary for esbuild, a JavaScript bundler and minifier. See https://github.com/evanw/esbuild for details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env node | ||
|
||
// Unfortunately even though npm shims "bin" commands on Windows with auto- | ||
// generated forwarding scripts, it doesn't strip the ".exe" from the file name | ||
// first. So it's possible to publish executables via npm on all platforms | ||
// except Windows. I consider this a npm bug. | ||
// | ||
// My workaround is to add this script as another layer of indirection. It'll | ||
// be slower because node has to boot up just to shell out to the actual exe, | ||
// but Windows is somewhat of a second-class platform to npm so it's the best | ||
// I can do I think. | ||
const esbuild_exe = require.resolve('esbuild-windows-arm64/esbuild.exe'); | ||
const child_process = require('child_process'); | ||
child_process.spawnSync(esbuild_exe, process.argv.slice(2), { stdio: 'inherit' }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "esbuild-windows-arm64", | ||
"version": "0.12.20", | ||
"description": "The Windows ARM 64-bit binary for esbuild, a JavaScript bundler.", | ||
"repository": "https://github.com/evanw/esbuild", | ||
"license": "MIT", | ||
"os": [ | ||
"win32" | ||
], | ||
"cpu": [ | ||
"arm64" | ||
], | ||
"directories": { | ||
"bin": "bin" | ||
} | ||
} |