ModularVencord/tsconfig.json
2024-09-13 16:12:41 -04:00

51 lines
1.5 KiB
JSON

{
"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
}
}