File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 40
40
}
41
41
42
42
const [ pkg ] = opts . _unknown ;
43
- const { org, name } =
44
- / ^ ( @ (?< org > [ ^ / ] + ) \/ ) ? (?< name > .* ) / . exec ( pkg ) ?. groups as { org : string ; name: string } ;
43
+ const { org, name } = / ^ ( @ (?< org > [ ^ / ] + ) \/ ) ? (?< name > .* ) / . exec ( pkg ) ?. groups as {
44
+ org : string ;
45
+ name: string ;
46
+ } ;
45
47
const platforms = parsePlatforms ( opts . platform ) ;
46
48
const cache = parseCache ( opts . lib , opts . bins , name , org ) ;
47
49
const ci = parseCI ( opts . ci ) ;
@@ -153,7 +155,7 @@ function parseCache(
153
155
// lib: @acme-libs/logo-generator
154
156
// bin: @acme-libs/logo-generator-darwin-arm64
155
157
if (bins.startsWith("npm:")) {
156
- const split = bins.substring(4).split('/' , 2);
158
+ const split = bins.substring(4).split("/" , 2);
157
159
158
160
return new NPM(split[0], split.length > 1 ? split[1] : prefix);
159
161
}
You can’t perform that action at this time.
0 commit comments