@@ -91,7 +91,7 @@ async function downloadBinary(platform, arch, os, releaseTag, githubToken) {
9191 console . log ( `Downloaded asset for ${ buildName } (v${ releaseTag } )` ) ;
9292}
9393
94- async function writeManifest ( packagePath , version ) {
94+ async function writeManifest ( packagePath , version , { versionOnly = false } = { } ) {
9595 const manifestPath = resolve (
9696 PACKAGES_PGLS_ROOT ,
9797 packagePath ,
@@ -102,12 +102,14 @@ async function writeManifest(packagePath, version) {
102102 fs . readFileSync ( manifestPath ) . toString ( "utf-8" )
103103 ) ;
104104
105- const nativePackages = platformArchCombinations ( ) . map (
106- ( { platform, arch } ) => [ getPackageName ( platform , arch ) , version ]
107- ) ;
108-
109105 manifestData . version = version ;
110- manifestData . optionalDependencies = Object . fromEntries ( nativePackages ) ;
106+
107+ if ( ! versionOnly ) {
108+ const nativePackages = platformArchCombinations ( ) . map (
109+ ( { platform, arch } ) => [ getPackageName ( platform , arch ) , version ]
110+ ) ;
111+ manifestData . optionalDependencies = Object . fromEntries ( nativePackages ) ;
112+ }
111113
112114 console . log ( `Update manifest ${ manifestPath } ` ) ;
113115 const content = JSON . stringify ( manifestData , null , 2 ) ;
@@ -276,6 +278,7 @@ function getVersion(releaseTag, isPrerelease) {
276278 const version = getVersion ( releaseTag , isPrerelease ) ;
277279 await writeManifest ( "cli" , version ) ;
278280 await writeManifest ( "backend-jsonrpc" , version ) ;
281+ await writeManifest ( "wasm" , version , { versionOnly : true } ) ;
279282
280283 // Copy README to main packages
281284 copyReadmeToPackage ( "cli" ) ;
0 commit comments