-
Notifications
You must be signed in to change notification settings - Fork 0
/
Eliminate.ts
50 lines (47 loc) · 1.22 KB
/
Eliminate.ts
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import type Interface from "@playform/eliminate/Target/Interface/Option.js";
/**
* @module Option
*
*/
export default (
await import("@playform/eliminate/Target/Function/Merge.js")
).default((await import("@playform/pipe/Target/Variable/Option.js")).default, {
Action: {
Wrote: async (On) => {
try {
return (
await import(
"@playform/eliminate/Target/Function/Output.js"
)
).default(On.Buffer.toString());
} catch (_Error) {
console.log(_Error);
return On.Buffer;
}
},
Failed: async ({ Input }, _Error) => {
console.log(_Error);
return `Error: Cannot process file ${Input}`;
},
},
Path: new Map([
[
"./Dependency/Microsoft/Dependency/Editor/build",
"./Dependency/Microsoft/Dependency/Editor/build",
],
[
"./Dependency/Microsoft/Dependency/Editor/extensions",
"./Dependency/Microsoft/Dependency/Editor/extensions",
],
[
"./Dependency/Microsoft/Dependency/Editor/scripts",
"./Dependency/Microsoft/Dependency/Editor/scripts",
],
[
"./Dependency/Microsoft/Dependency/Editor/Source",
"./Dependency/Microsoft/Dependency/Editor/Source",
],
]),
File: "**/*.ts",
Exclude: (File) => (File.indexOf(".d.ts") !== -1 ? true : false),
} satisfies Interface);