From 08afe60a94fd730f2656367dbb8c3687deb18436 Mon Sep 17 00:00:00 2001 From: Benjamin Clos Date: Tue, 15 Oct 2024 12:45:00 -0600 Subject: [PATCH] fix: cdn manifest output; --- tooling/cdn/bin.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 () {