mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-10-27 00:25:49 +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);
|
const relativeFilePath = path.resolve(process.cwd(), filePath);
|
||||||
await fs.mkdir(path.dirname(relativeFilePath), { recursive: true });
|
await fs.mkdir(path.dirname(relativeFilePath), { recursive: true });
|
||||||
await fs.writeFile(relativeFilePath, source);
|
await fs.writeFile(relativeFilePath, source);
|
||||||
|
await exec('npx elm-format --yes ' + relativeFilePath);
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user