Skip to content

Commit

Permalink
chore: add pkg.version to cdn manifest;
Browse files Browse the repository at this point in the history
  • Loading branch information
ondreian committed Oct 17, 2024
1 parent 5a09029 commit dc9e77b
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
Expand Up @@ -8,7 +8,9 @@ export async function createPackageInfoList () {
return {name, description, ...flowplayer}
})

await fs.writeFile("dist/index.json", JSON.stringify({createdAt: now, entries}, null, 2))
const pkg = JSON.parse((await fs.readFile("./package.json")).toString())

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

~(async function main () {
Expand Down

0 comments on commit dc9e77b

Please sign in to comment.