Skip to content

Commit

Permalink
feat: store all versions in the manifest (#6769)
Browse files Browse the repository at this point in the history
  • Loading branch information
binoy14 authored May 28, 2024
1 parent f341c2d commit 1fcc0f2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/uploadBundles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,13 @@ async function copyPackages() {
return packageVersions
}

interface ManifestPackage {
default: string
versions: string[]
}

interface Manifest {
packages: Record<string, Record<string, string>>
packages: Record<string, ManifestPackage>
}

async function updateManifest(newVersions: Map<string, string>) {
Expand All @@ -153,6 +158,7 @@ async function updateManifest(newVersions: Map<string, string>) {
[dirName]: {
...initial.packages[dirName],
default: value,
versions: [...(initial.packages[dirName]?.versions || []), value],
},
},
}
Expand Down

0 comments on commit 1fcc0f2

Please sign in to comment.