File tree 6 files changed +65
-2
lines changed
6 files changed +65
-2
lines changed Original file line number Diff line number Diff line change
1
+ # ` sass-embedded-linux-unknown `
2
+
3
+ This is the ** dart2js** binary for [ ` sass-embedded ` ] ( https://www.npmjs.com/package/sass-embedded )
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
1
+ # ` sass-embedded-unknown-unknown `
2
+
3
+ This is the ** dart2js** binary for [ ` sass-embedded ` ] ( https://www.npmjs.com/package/sass-embedded )
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change 55
55
"sass-embedded-linux-musl-ia32" : " 1.83.4" ,
56
56
"sass-embedded-linux-musl-riscv64" : " 1.83.4" ,
57
57
"sass-embedded-linux-musl-x64" : " 1.83.4" ,
58
+ "sass-embedded-linux-unknown" : " 1.83.4" ,
58
59
"sass-embedded-win32-arm64" : " 1.83.4" ,
59
60
"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"
61
63
},
62
64
"dependencies" : {
63
65
"@bufbuild/protobuf" : " ^2.0.0" ,
Original file line number Diff line number Diff line change @@ -123,13 +123,25 @@ void (async () => {
123
123
) ;
124
124
}
125
125
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
+
126
139
const index = argv . package . lastIndexOf ( '-' ) ;
127
140
const nodePlatform = argv . package . substring ( 0 , index ) ;
128
141
const nodeArch = argv . package . substring ( index + 1 ) ;
129
142
const dartPlatform = nodePlatformToDartPlatform ( nodePlatform ) ;
130
143
const dartArch = nodeArchToDartArch ( nodeArch ) ;
131
144
const isMusl = nodePlatform === 'linux-musl' ;
132
- const outPath = p . join ( 'npm' , argv . package ) ;
133
145
await downloadRelease ( {
134
146
repo : 'dart-sass' ,
135
147
assetUrl :
You can’t perform that action at this time.
0 commit comments