From 2e93519910ccf606190680f69a98a97a6c1ead26 Mon Sep 17 00:00:00 2001 From: Thomas Cooper Date: Fri, 19 Jul 2024 13:56:50 -0400 Subject: [PATCH] fix: resolve build error on arm64 machines --- package-lock.json | 55 ++++++++++++++++++++++++++++++++++++++++++++++- package.json | 6 ++++++ 2 files changed, 60 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index a92a32070..cdb490761 100644 --- a/package-lock.json +++ b/package-lock.json @@ -75,6 +75,12 @@ "nyc": "^17.0.0", "prettier": "^3.0.0", "vite": "^4.4.2" + }, + "optionalDependencies": { + "@esbuild/darwin-arm64": "^0.18.20", + "@esbuild/darwin-x64": "^0.18.20", + "@esbuild/linux-x64": "0.18.20", + "@esbuild/win32-x64": "0.18.20" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -1749,6 +1755,22 @@ "resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.8.0.tgz", "integrity": "sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==" }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.18.20.tgz", + "integrity": "sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, "node_modules/@esbuild/darwin-x64": { "version": "0.18.20", "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.18.20.tgz", @@ -1756,7 +1778,6 @@ "cpu": [ "x64" ], - "dev": true, "optional": true, "os": [ "darwin" @@ -1765,6 +1786,38 @@ "node": ">=12" } }, + "node_modules/@esbuild/linux-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.18.20.tgz", + "integrity": "sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.18.20.tgz", + "integrity": "sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, "node_modules/@eslint-community/eslint-utils": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", diff --git a/package.json b/package.json index 29ba51dab..3b9d79695 100644 --- a/package.json +++ b/package.json @@ -89,6 +89,12 @@ "prettier": "^3.0.0", "vite": "^4.4.2" }, + "optionalDependencies": { + "@esbuild/darwin-arm64": "^0.18.20", + "@esbuild/darwin-x64": "^0.18.20", + "@esbuild/linux-x64": "0.18.20", + "@esbuild/win32-x64": "0.18.20" + }, "browserslist": { "production": [ ">0.2%",