swaf/scripts/clean.js

11 lines
192 B
JavaScript
Raw Permalink Normal View History

const fs = require('fs');
[
'dist',
].forEach(file => {
if (fs.existsSync(file)) {
console.log('Cleaning', file, '...');
fs.rmSync(file, {recursive: true});
}
});