-
Notifications
You must be signed in to change notification settings - Fork 3
/
clean.mjs
35 lines (33 loc) · 930 Bytes
/
clean.mjs
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
27
28
29
30
31
32
33
34
35
import {
existsSync,
lstat,
lstatSync,
rmdirSync,
rmSync,
unlinkSync,
} from "fs";
import path from "path";
const paths = [
path.join(process.cwd(), "remotion"),
path.join(process.cwd(), "ffmpeg"),
path.join(process.cwd(), "target"),
path.join(process.cwd(), "x264"),
path.join(process.cwd(), "x265"),
path.join(process.cwd(), "av1"),
path.join(process.cwd(), "zimg"),
path.join(process.cwd(), "opus"),
path.join(process.cwd(), "libmp3lame"),
path.join(process.cwd(), "libvpx-1.12.0"),
path.join(process.cwd(), "opus-1.3.1"),
path.join(process.cwd(), "fdk-aac-2.0.2"),
path.join(process.cwd(), "bindings.rs"),
path.join(process.cwd(), "ffmpeg.tar.gz"),
path.join(process.cwd(), "out-test.mp4"),
path.join(process.cwd(), "out-test.webm"),
path.join(process.cwd(), "out-test.png"),
];
for (const path of paths) {
if (existsSync(path)) {
rmSync(path, { recursive: true });
}
}