mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-08-29 02:26:59 +08:00
60a6b5a119
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.
35 lines
1.1 KiB
JSON
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"]
|
|
}
|