Skip to content

Commit

Permalink
fix: cdn manifest output;
Browse files Browse the repository at this point in the history
  • Loading branch information
ondreian committed Oct 15, 2024
1 parent f2948c8 commit 08afe60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tooling/cdn/bin.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import fs from "fs/promises"
import * as PackageUtils from "../utils/packages"

export async function createPackageInfoList () {
Expand All @@ -6,7 +7,8 @@ export async function createPackageInfoList () {
const entries = packages.map(({name, description, flowplayer})=> {
return {name, description, ...flowplayer}
})
process.stdout.write(JSON.stringify({createdAt: now, entries}, null, 2))

await fs.writeFile("dist/index.json", JSON.stringify({createdAt: now, entries}, null, 2))
}

~(async function main () {
Expand Down

0 comments on commit 08afe60

Please sign in to comment.