@@ -30,10 +30,6 @@ for (const pkg of packageDirs) {
30
30
const pkgJsonPath = path . resolve ( pkgPath , "package.json" ) ;
31
31
/** @type {PackageJson } */
32
32
const meta = JSON . parse ( await fs . readFile ( pkgJsonPath , "utf-8" ) ) ;
33
- // Skip some packages
34
- if ( [ "@zarrita/typedarray" , "@zarrita/indexing" ] . includes ( meta . name ) ) {
35
- continue ;
36
- }
37
33
MANIFEST [ pkg . name ] = {
38
34
name : meta . name === "zarrita" ? "@zarrita/zarrita" : meta . name ,
39
35
version : meta . version ,
@@ -55,10 +51,11 @@ for (const meta of Object.values(MANIFEST)) {
55
51
meta . imports = mapEntries ( meta . imports , ( [ name , version ] ) => {
56
52
if ( version . startsWith ( "workspace:" ) ) {
57
53
const semanticResolution = version . slice ( "workspace:" . length ) ;
58
- const workspaceVersion = MANIFEST [ name . slice ( "@zarrita/" . length ) ] . version ;
54
+ const workspaceVersion = MANIFEST [ name . replace ( "@zarrita/" , "" ) ] ? .version ;
59
55
assert ( workspaceVersion , `Missing workspace version for ${ name } ` ) ;
60
56
assert ( semanticResolution , `Missing semantic resolution for ${ name } ` ) ;
61
- return [ name , `jsr:${ name } @${ semanticResolution } ${ workspaceVersion } ` ] ;
57
+ const jsrName = name === "zarrita" ? "@zarrita/zarrita" : name ;
58
+ return [ name , `jsr:${ jsrName } @${ semanticResolution } ${ workspaceVersion } ` ] ;
62
59
}
63
60
return [ name , `npm:${ name } @${ version } ` ] ;
64
61
} ) ;
0 commit comments