Run elm-format on the generated file

This commit is contained in:
Jeroen Engels 2021-03-12 17:39:03 +01:00
parent d14848d264
commit c67b5ec861

View File

@ -56,6 +56,7 @@ async function createFile([elmJson, docsJson]) {
const relativeFilePath = path.resolve(process.cwd(), filePath);
await fs.mkdir(path.dirname(relativeFilePath), { recursive: true });
await fs.writeFile(relativeFilePath, source);
await exec('npx elm-format --yes ' + relativeFilePath);
});
return;