Unverified Commit dd791274 authored by Sebastian "Sebbie" Silbermann's avatar Sebastian "Sebbie" Silbermann Committed by GitHub

Write errors.json fully formatted (#74753)

parent da3f7820
const os = require('os')
const path = require('path') const path = require('path')
const fs = require('fs/promises') const fs = require('fs/promises')
...@@ -56,7 +57,9 @@ async function main() { ...@@ -56,7 +57,9 @@ async function main() {
// Write updated errors and cleanup // Write updated errors and cleanup
await fs.writeFile( await fs.writeFile(
path.join(__dirname, 'errors.json'), path.join(__dirname, 'errors.json'),
JSON.stringify(existingErrors, null, 2) JSON.stringify(existingErrors, null, 2) +
// Formatters would add these anyway
os.EOL
) )
await fs.rm(errorsDir, { recursive: true, force: true }) await fs.rm(errorsDir, { recursive: true, force: true })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment