Skip to content

Commit dc8873b

Browse files
ntkmenex3
andauthored
Download arm64 dart-sass-embedded (#118)
Co-authored-by: Natalie Weizenbaum <[email protected]>
1 parent 921b83e commit dc8873b

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sass-embedded",
3-
"version": "1.49.9",
3+
"version": "1.49.11-dev",
44
"protocol-version": "1.0.0",
55
"compiler-version": "1.49.9",
66
"description": "Node.js library that communicates with Embedded Dart Sass using the Embedded Sass protocol",

tool/utils.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,16 @@ const OS: 'linux' | 'macos' | 'windows' = (() => {
3030

3131
// The current platform's architecture. Throws if the architecture is not
3232
// supported by Dart Sass Embedded.
33-
const ARCH: 'ia32' | 'x64' = (() => {
33+
const ARCH: 'ia32' | 'x64' | 'arm64' = (() => {
3434
switch (process.arch) {
3535
case 'ia32':
3636
return 'ia32';
3737
case 'x86':
3838
return 'ia32';
3939
case 'x64':
4040
return 'x64';
41-
// TODO: This is blocked until Github Actions supports compiling Dart Sass
42-
// for arm64. Until then, download the x64 binary for arm64 users.
43-
// https://github.com/sass/dart-sass/issues/1125
4441
case 'arm64':
45-
return 'x64';
42+
return 'arm64';
4643
default:
4744
throw Error(`Architecure ${process.arch} is not supported.`);
4845
}

0 commit comments

Comments
 (0)