swaf/scripts/prepare-sources.js

10 lines
188 B
JavaScript

import fs from "fs";
// These folders must exist for nodemon not to loop indefinitely.
[
'build',
'public',
].forEach(dir => {
if (!fs.existsSync(dir)) fs.mkdirSync(dir);
});