forked from Vendicated/Vencord
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtsconfig.json
51 lines (44 loc) · 1.52 KB
/
tsconfig.json
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
51
{
"include": ["browser", "src"],
"compilerOptions": {
"noUncheckedIndexedAccess": true,
"noUncheckedSideEffectImports": true,
"strict": true,
// 'baseUrl' allows module specifiers that are invalid in emitted declarations: https://github.com/microsoft/TypeScript/issues/34749
"module": "ESNext",
"moduleResolution": "Bundler",
"paths": {
"@api": ["./src/api"],
"@api/*": ["./src/api/*"],
"@components": ["./src/components"],
"@components/*": ["./src/components/*"],
"@main": ["./src/main"],
"@main/*": ["./src/main/*"],
"@shared/*": ["./src/shared/*"],
"@utils": ["./src/utils"],
"@utils/*": ["./src/utils/*"],
"@webpack": ["./src/webpack/webpack"],
"@webpack/types": ["./src/webpack/common/types"],
"@webpack/common": ["./src/webpack/common"]
},
"resolveJsonModule": true,
"emitDeclarationOnly": true,
"outDir": "dist",
"plugins": [
// Transform paths in output .d.ts files (Include this line if you output declarations files)
{
"transform": "typescript-transform-paths",
"afterDeclarations": true
}
],
"esModuleInterop": true,
"jsx": "preserve",
"lib": [
"DOM",
"DOM.Iterable",
"ESNext"
],
"target": "ESNext",
"composite": true
}
}