ci: trim auto-generated files

This commit is contained in:
lowlighter
2022-04-24 13:25:27 -04:00
parent d1e1737f28
commit 73927e96c1

View File

@@ -114,7 +114,7 @@ async function update({source, output, context = {}, options = {}}) {
const {plugins, templates, packaged, descriptor} = await metadata({log: false}) const {plugins, templates, packaged, descriptor} = await metadata({log: false})
const content = await ejs.renderFile(source, {plugins, templates, packaged, descriptor, ...context}, {async: true, ...options}) const content = await ejs.renderFile(source, {plugins, templates, packaged, descriptor, ...context}, {async: true, ...options})
const file = paths.join(__metrics, output) const file = paths.join(__metrics, output)
await fs.writeFile(file, content) await fs.writeFile(file, content.replace(/^[ ]+$/gm, ""))
staged.add(file) staged.add(file)
} }