Files
WYF-koubo/scripts/clean-build-artifacts.cjs
2026-06-19 18:45:55 +08:00

16 lines
371 B
JavaScript

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}`);
}
}