mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-04 14:41:14 +00:00
Enable Node typings for packages/napcat-image-size by adding "compilerOptions.types": ["node"] to its tsconfig.json. Remove the restrictive "typeRoots" entry from tsconfig.base.json so type resolution can be controlled per-package and won't be forced globally.
42 lines
1.0 KiB
JSON
42 lines
1.0 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2021",
|
|
"module": "ESNext",
|
|
"moduleResolution": "Node",
|
|
"lib": [
|
|
"ES2021"
|
|
],
|
|
"esModuleInterop": true,
|
|
"outDir": "dist",
|
|
"noEmit": false,
|
|
"sourceMap": true,
|
|
"strict": true,
|
|
"noImplicitAny": false,
|
|
"strictFunctionTypes": true,
|
|
"strictBindCallApply": true,
|
|
"alwaysStrict": true,
|
|
"noImplicitThis": true,
|
|
"noImplicitReturns": true,
|
|
"noPropertyAccessFromIndexSignature": true,
|
|
"noUncheckedIndexedAccess": true,
|
|
"exactOptionalPropertyTypes": false,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"useUnknownInCatchVariables": true,
|
|
"noImplicitOverride": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"useDefineForClassFields": true,
|
|
"experimentalDecorators": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"resolveJsonModule": true,
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"@/*": [
|
|
"packages/*"
|
|
]
|
|
},
|
|
"skipLibCheck": true,
|
|
"skipDefaultLibCheck": true
|
|
}
|
|
} |