2021-11-20 15:30:02 +01:00
|
|
|
const fs = require('fs');
|
2021-03-30 11:31:17 +02:00
|
|
|
|
|
|
|
[
|
2021-05-27 15:26:19 +02:00
|
|
|
'intermediates',
|
2021-03-30 11:31:17 +02:00
|
|
|
'dist',
|
2021-03-24 18:49:34 +01:00
|
|
|
'public',
|
2021-03-30 11:31:17 +02:00
|
|
|
].forEach(file => {
|
|
|
|
if (fs.existsSync(file)) {
|
|
|
|
console.log('Cleaning', file, '...');
|
|
|
|
fs.rmSync(file, {recursive: true});
|
|
|
|
}
|
|
|
|
});
|