diff --git a/tooling/cdn/bin.ts b/tooling/cdn/bin.ts index c8cea12..a161079 100644 --- a/tooling/cdn/bin.ts +++ b/tooling/cdn/bin.ts @@ -1,3 +1,4 @@ +import fs from "fs/promises" import * as PackageUtils from "../utils/packages" export async function createPackageInfoList () { @@ -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 () {