swaf/scripts/prepare-sources.js

10 lines
188 B
JavaScript
Raw Normal View History

import fs from "fs";
2021-04-27 15:44:20 +02:00
// These folders must exist for nodemon not to loop indefinitely.
[
'build',
'public',
].forEach(dir => {
if (!fs.existsSync(dir)) fs.mkdirSync(dir);
});