chenyc
2026-04-21 8632fbd73fdb15f22fae9cd36b9ed3e0635360f1
1
2
3
4
5
6
7
8
9
10
11
12
13
const fs = require('fs');
const path = require('path');
 
const targets = [
  path.join(__dirname, '..', 'build'),
  path.join(__dirname, '..', 'dist'),
];
 
for (const target of targets) {
  fs.rmSync(target, { recursive: true, force: true });
}
 
console.log('[BUILD] cleaned build/ and dist/');