mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-19 22:09:37 +00:00
The package's exports map lacks a "types" condition, which TypeScript 5.9 with moduleResolution "bundler" requires. Adding an explicit path mapping resolves the module for vue-tsc. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
60 lines
1.6 KiB
JSON
60 lines
1.6 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2023",
|
|
"useDefineForClassFields": true,
|
|
"module": "ESNext",
|
|
"lib": ["ES2023", "ES2023.Array", "DOM", "DOM.Iterable"],
|
|
"skipLibCheck": true,
|
|
"incremental": true,
|
|
"sourceMap": true,
|
|
"esModuleInterop": true,
|
|
"moduleResolution": "bundler",
|
|
"experimentalDecorators": true,
|
|
"emitDecoratorMetadata": true,
|
|
"resolveJsonModule": true,
|
|
"strict": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"noImplicitOverride": true,
|
|
"allowJs": true,
|
|
"verbatimModuleSyntax": true,
|
|
"paths": {
|
|
"@/*": ["./src/*"],
|
|
"@e2e/*": ["./browser_tests/*"],
|
|
"@/utils/formatUtil": [
|
|
"./packages/shared-frontend-utils/src/formatUtil.ts"
|
|
],
|
|
"@/utils/networkUtil": [
|
|
"./packages/shared-frontend-utils/src/networkUtil.ts"
|
|
],
|
|
"@total-typescript/shoehorn": [
|
|
"./node_modules/@total-typescript/shoehorn/dist/index.d.ts"
|
|
]
|
|
},
|
|
"typeRoots": ["src/types", "node_modules/@types", "./node_modules"],
|
|
"types": [
|
|
"vitest/globals",
|
|
"@webgpu/types",
|
|
"@testing-library/jest-dom/vitest"
|
|
],
|
|
"outDir": "./dist",
|
|
"rootDir": "./"
|
|
},
|
|
"include": [
|
|
".storybook/**/*",
|
|
"eslint.config.ts",
|
|
"global.d.ts",
|
|
"knip.config.ts",
|
|
"lint-staged.config.ts",
|
|
"src/**/*.vue",
|
|
"src/**/*",
|
|
"src/types/**/*.d.ts",
|
|
"playwright.config.ts",
|
|
"playwright.i18n.config.ts",
|
|
"vite.config.mts",
|
|
"vitest.config.ts"
|
|
// "vitest.setup.ts",
|
|
]
|
|
}
|