2021-03-30 11:31:17 +02:00
|
|
|
const fs = require('fs');
|
|
|
|
const path = require('path');
|
|
|
|
|
|
|
|
fs.copyFileSync('package.json', path.join('src', 'package.json'));
|
2021-04-23 18:19:05 +02:00
|
|
|
|
|
|
|
// These dir must exist for nodemon not to loop indefinitely.
|
|
|
|
[
|
|
|
|
'build',
|
|
|
|
'public',
|
|
|
|
].forEach(dir => {
|
|
|
|
if (!fs.existsSync(dir)) fs.mkdirSync(dir);
|
|
|
|
});
|