Initial clean project import
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
const root = path.join(__dirname, '..');
|
||||
const targets = [
|
||||
path.join(root, 'dist'),
|
||||
path.join(root, 'dist-electron'),
|
||||
];
|
||||
|
||||
for (const target of targets) {
|
||||
if (fs.existsSync(target)) {
|
||||
fs.rmSync(target, { recursive: true, force: true });
|
||||
console.log(`[clean-build-artifacts] removed ${target}`);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user