Files
Dannon Baker 60a6b5a119 Add tsconfig path mapping for Vite 8 type declarations
Vite 8 removed the top-level "types" field from its package.json and
only declares types through the "exports" field. Since our tsconfig has
resolvePackageJsonExports: false (needed for Vue 2.7 compat), TypeScript
can't find the types. Adding an explicit path mapping, same pattern we
already use for fontawesome-common-types.
2026-05-09 21:52:01 -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": 2.7
},
"include": ["./types/*.d.ts", "./src/**/*.ts", "./src/**/*.tsx", "./src/**/*.vue", "./tests/**/*.ts"]
}