Skip to content

Commit

Permalink
fix: allow and pick darwin x86_64 binary on apple silicon macs (#564)
Browse files Browse the repository at this point in the history
  • Loading branch information
sod authored Nov 27, 2020
1 parent f4cec94 commit c43d4a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ const knownWindowsPackages: Record<string, string> = {
};
const knownUnixlikePackages: Record<string, string> = {
'darwin x64 LE': 'esbuild-darwin-64',
'darwin arm64 LE': 'esbuild-darwin-64',
'freebsd arm64 LE': 'esbuild-freebsd-arm64',
'freebsd x64 LE': 'esbuild-freebsd-64',
'linux arm64 LE': 'esbuild-linux-arm64',
Expand Down
3 changes: 2 additions & 1 deletion npm/esbuild-darwin-64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"darwin"
],
"cpu": [
"x64"
"x64",
"arm64"
],
"directories": {
"bin": "bin"
Expand Down

0 comments on commit c43d4a8

Please sign in to comment.