Files
Dannon Baker c23b66727c Give vue-tsc the real Vue types
vue-tsc was reporting ~4,000 errors, nearly all "vue has no exported
member ref/computed/...". types/vue-shim.d.ts declared an ambient
module "vue" that rebuilt the API by re-exporting @vue/runtime-core,
runtime-dom, reactivity and shared, but pnpm doesn't hoist those into
client/node_modules, so the declaration resolved to nothing and shadowed
the real package. On top of that, tsconfig mapped "vue" to the compat
esm-bundler .js file, which has no types. Drop the mapping and the
override so TypeScript uses vue@3.5.18's own types (the bundler still
gets @vue/compat through the Vite alias; the build output is unchanged),
and have the @vue/compat declaration re-export from vue as well. That
leaves 902 errors, about 700 of them in old-style tests.
2026-10-03 15:27:53 -04:00

35 lines
1.1 KiB
JSON

{
"extends": "@vue/tsconfig/tsconfig.json",
"compilerOptions": {
"target": "es2022",
"module": "es2022",
"moduleResolution": "Bundler",
"verbatimModuleSyntax": true,
"baseUrl": ".",
"paths": {
"@/*": ["src/*"],
"@tests/*": ["tests/*"],
"@fortawesome/fontawesome-common-types": [
"./node_modules/@fortawesome/fontawesome-common-types/index"
],
"vite": ["./node_modules/vite/dist/node/index"]
},
"outDir": "./dist/build",
"allowJs": true,
"checkJs": false,
"allowSyntheticDefaultImports": true,
"noUncheckedIndexedAccess": true,
// Necessary for now, was previously the default setting
// See more at https://github.com/vuejs/tsconfig#migrating-from-typescript--50
"resolvePackageJsonExports": false
},
"vueCompilerOptions": {
"target": 3
},
"include": ["./types/*.d.ts", "./src/**/*.ts", "./src/**/*.tsx", "./src/**/*.vue", "./tests/**/*.ts"]
}