mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 04:40:39 -07:00
Re-add suppressImplicitAnyIndexErrors and downlevelIteration removed in
a75033e2c, which broke the rollup TypeScript build on CI. Drop zh-cn
changelog output now that translations were removed.
Co-authored-by: Cursor <[email protected]>
23 lines
645 B
JavaScript
23 lines
645 B
JavaScript
const fs = require('fs')
|
|
const path = require('path')
|
|
|
|
const root = path.resolve(__dirname, '..')
|
|
const src = path.join(root, 'CHANGELOG.md')
|
|
|
|
let content = fs.readFileSync(src, 'utf8').replace(/\r\n/g, '\n')
|
|
|
|
const lines = content.split('\n')
|
|
lines[0] = lines[0]
|
|
.replace(/"/g, '"')
|
|
.replace(/</g, '<')
|
|
.replace(/>/g, '>')
|
|
content = lines.join('\n')
|
|
|
|
content = content
|
|
.replace(/{%/g, '{% raw %}{%{% endraw %}')
|
|
.replace(/\{\{/g, '{% raw %}{{{% endraw %}')
|
|
|
|
const enFrontmatter = '---\ntitle: Changelog\nauto: true\n---\n\n'
|
|
|
|
fs.writeFileSync(path.join(root, 'docs/source/tutorials/changelog.md'), enFrontmatter + content)
|