feat: New 'What's New' section in Preferences (#2049) (skip e2e)

This commit is contained in:
Mo
2022-11-24 05:46:44 -06:00
committed by GitHub
parent c40b17bd4c
commit 0a01ddb430
31 changed files with 10100 additions and 23 deletions

View File

@@ -0,0 +1,16 @@
const parseChangelog = require('changelog-parser')
const path = require('path')
const fs = require('fs')
const FILES = ['packages/web/CHANGELOG.md']
async function saveJsonChangelogs() {
for (const file of FILES) {
const parsed = await parseChangelog(path.join(__dirname, `../${file}`))
const json = JSON.stringify(parsed, null, 2)
const jsonPath = path.join(__dirname, `../${file}.json`)
fs.writeFileSync(jsonPath, json)
}
}
saveJsonChangelogs()