mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-09-11 16:16:09 +03:00
Run elm-format on the generated file
This commit is contained in:
parent
d14848d264
commit
c67b5ec861
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user