Skip to content

Commit 3744f85

Browse files
committed
Add sass-embedded-linux-unknown and sass-embedded-unknown-unknown packages
1 parent fa0b0af commit 3744f85

File tree

6 files changed

+65
-2
lines changed

6 files changed

+65
-2
lines changed

npm/linux-unknown/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# `sass-embedded-linux-unknown`
2+
3+
This is the **dart2js** binary for [`sass-embedded`](https://www.npmjs.com/package/sass-embedded)

npm/linux-unknown/package.json

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "sass-embedded-linux-unknown",
3+
"version": "1.83.4",
4+
"description": "The dart2js binary for sass-embedded",
5+
"repository": "sass/embedded-host-node",
6+
"author": "Google Inc.",
7+
"license": "MIT",
8+
"dependencies": {
9+
"sass": "1.83.4"
10+
},
11+
"engines": {
12+
"node": ">=14.0.0"
13+
},
14+
"os": [
15+
"linux"
16+
],
17+
"cpu": [
18+
"!arm",
19+
"!arm64",
20+
"!ia32",
21+
"!riscv64",
22+
"!x64"
23+
]
24+
}

npm/unknown-unknown/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# `sass-embedded-unknown-unknown`
2+
3+
This is the **dart2js** binary for [`sass-embedded`](https://www.npmjs.com/package/sass-embedded)

npm/unknown-unknown/package.json

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "sass-embedded-unknown-unknown",
3+
"version": "1.83.4",
4+
"description": "The dart2js binary for sass-embedded",
5+
"repository": "sass/embedded-host-node",
6+
"author": "Google Inc.",
7+
"license": "MIT",
8+
"dependencies": {
9+
"sass": "1.83.4"
10+
},
11+
"engines": {
12+
"node": ">=14.0.0"
13+
},
14+
"os": [
15+
"!darwin",
16+
"!linux",
17+
"!win32"
18+
]
19+
}

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,11 @@
5555
"sass-embedded-linux-musl-ia32": "1.83.4",
5656
"sass-embedded-linux-musl-riscv64": "1.83.4",
5757
"sass-embedded-linux-musl-x64": "1.83.4",
58+
"sass-embedded-linux-unknown": "1.83.4",
5859
"sass-embedded-win32-arm64": "1.83.4",
5960
"sass-embedded-win32-ia32": "1.83.4",
60-
"sass-embedded-win32-x64": "1.83.4"
61+
"sass-embedded-win32-x64": "1.83.4",
62+
"sass-embedded-unknown-unknown": "1.83.4"
6163
},
6264
"dependencies": {
6365
"@bufbuild/protobuf": "^2.0.0",

tool/prepare-optional-release.ts

+13-1
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,25 @@ void (async () => {
123123
);
124124
}
125125

126+
const outPath = p.join('npm', argv.package);
127+
if (argv.package.indexOf('unknown') !== -1) {
128+
const pkg = JSON.parse(
129+
(await fs.readFile(p.join(outPath, 'package.json'))).toString(),
130+
);
131+
if (pkg.version !== pkg.dependencies.sass) {
132+
throw Error(`dependency sass's version doesn't match ${pkg.version}`);
133+
}
134+
135+
// Skip downloading for platform running dart2js.
136+
return;
137+
}
138+
126139
const index = argv.package.lastIndexOf('-');
127140
const nodePlatform = argv.package.substring(0, index);
128141
const nodeArch = argv.package.substring(index + 1);
129142
const dartPlatform = nodePlatformToDartPlatform(nodePlatform);
130143
const dartArch = nodeArchToDartArch(nodeArch);
131144
const isMusl = nodePlatform === 'linux-musl';
132-
const outPath = p.join('npm', argv.package);
133145
await downloadRelease({
134146
repo: 'dart-sass',
135147
assetUrl:

0 commit comments

Comments
 (0)