Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions lib/src/compiler-path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,7 @@ export const compilerCommand = (() => {
? 'linux-musl'
: (process.platform as string);

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

// find for development
for (const path of ['vendor', '../../../lib/src/vendor']) {
Expand Down
3 changes: 3 additions & 0 deletions npm/win32-arm64/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# `sass-embedded-win32-arm64`

This is the **win32-arm64** binary for [`sass-embedded`](https://www.npmjs.com/package/sass-embedded)
23 changes: 23 additions & 0 deletions npm/win32-arm64/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "sass-embedded-win32-arm64",
"version": "1.72.0",
"description": "The win32-arm64 binary for sass-embedded",
"repository": "sass/embedded-host-node",
"author": "Google Inc.",
"license": "MIT",
"files": [
"dart-sass/**/*"
],
"engines": {
"node": ">=14.0.0"
},
"bin": {
"sass": "./dart-sass/sass.bat"
},
"os": [
"win32"
],
"cpu": [
"arm64"
]
}
1 change: 0 additions & 1 deletion npm/win32-x64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"win32"
],
"cpu": [
"arm64",
"x64"
]
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"sass-embedded-linux-musl-arm64": "1.72.0",
"sass-embedded-linux-musl-ia32": "1.72.0",
"sass-embedded-linux-musl-x64": "1.72.0",
"sass-embedded-win32-arm64": "1.72.0",
"sass-embedded-win32-ia32": "1.72.0",
"sass-embedded-win32-x64": "1.72.0"
},
Expand Down