-
Notifications
You must be signed in to change notification settings - Fork 305
Expand file tree
/
Copy pathclear.cjs
More file actions
26 lines (23 loc) · 829 Bytes
/
Copy pathclear.cjs
File metadata and controls
26 lines (23 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
const { resolve } = require("path");
const { rmSync } = require("fs");
const lists = [
"packages/ctool-adapter/base",
"packages/ctool-adapter/chrome",
"packages/ctool-adapter/edge",
"packages/ctool-adapter/firefox",
"packages/ctool-adapter/tauri",
"packages/ctool-adapter/utools",
"packages/ctool-adapter/web",
"packages/ctool-config",
"packages/ctool-core",
"packages/ctool-site",
];
lists.forEach(item => {
let removePath = resolve(__dirname, `${item}/dist/`);
console.log(removePath);
rmSync(removePath, { recursive: true, force: true });
removePath = resolve(__dirname, `${item}/node_modules/`);
console.log(removePath);
rmSync(removePath, { recursive: true, force: true });
});
rmSync(resolve(__dirname, `node_modules/`), { recursive: true, force: true });