Skip to content

Commit 03934e2

Browse files
authored
Use native windows-arm64 dart-sass binary (#276)
1 parent 04adc79 commit 03934e2

File tree

5 files changed

+28
-8
lines changed

5 files changed

+28
-8
lines changed

lib/src/compiler-path.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,7 @@ export const compilerCommand = (() => {
2121
? 'linux-musl'
2222
: (process.platform as string);
2323

24-
// https://github.com/sass/embedded-host-node/issues/263
25-
// Use windows-x64 emulation on windows-arm64
26-
//
27-
// TODO: Make sure to remove "arm64" from "npm/win32-x64/package.json" when
28-
// this logic is removed once we have true windows-arm64 support.
29-
const arch =
30-
platform === 'win32' && process.arch === 'arm64' ? 'x64' : process.arch;
24+
const arch = process.arch;
3125

3226
// find for development
3327
for (const path of ['vendor', '../../../lib/src/vendor']) {

npm/win32-arm64/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# `sass-embedded-win32-arm64`
2+
3+
This is the **win32-arm64** binary for [`sass-embedded`](https://www.npmjs.com/package/sass-embedded)

npm/win32-arm64/package.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "sass-embedded-win32-arm64",
3+
"version": "1.72.0",
4+
"description": "The win32-arm64 binary for sass-embedded",
5+
"repository": "sass/embedded-host-node",
6+
"author": "Google Inc.",
7+
"license": "MIT",
8+
"files": [
9+
"dart-sass/**/*"
10+
],
11+
"engines": {
12+
"node": ">=14.0.0"
13+
},
14+
"bin": {
15+
"sass": "./dart-sass/sass.bat"
16+
},
17+
"os": [
18+
"win32"
19+
],
20+
"cpu": [
21+
"arm64"
22+
]
23+
}

npm/win32-x64/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"win32"
1919
],
2020
"cpu": [
21-
"arm64",
2221
"x64"
2322
]
2423
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"sass-embedded-linux-musl-arm64": "1.72.0",
5050
"sass-embedded-linux-musl-ia32": "1.72.0",
5151
"sass-embedded-linux-musl-x64": "1.72.0",
52+
"sass-embedded-win32-arm64": "1.72.0",
5253
"sass-embedded-win32-ia32": "1.72.0",
5354
"sass-embedded-win32-x64": "1.72.0"
5455
},

0 commit comments

Comments
 (0)