Map the shared dashboard ViewHeader module in Vite, Vitest, and app TS paths so bundled plugin dashboard views resolve the host component during PR build/typecheck. References: https://github.com/Runfusion/Fusion/issues/1721
22 lines
877 B
JSON
22 lines
877 B
JSON
{
|
|
"extends": "../../tsconfig.base.json",
|
|
"compilerOptions": {
|
|
"rootDir": "..",
|
|
"jsx": "react-jsx",
|
|
"moduleResolution": "bundler",
|
|
"module": "ESNext",
|
|
"noEmit": true,
|
|
"types": ["vitest/globals", "@testing-library/jest-dom", "node", "vite/client"],
|
|
"paths": {
|
|
"node-pty": ["./src/types/node-pty/index.d.ts"],
|
|
"@fusion/dashboard/app/components/TaskCard": ["./app/components/TaskCard.tsx"],
|
|
"@fusion/dashboard/app/components/ViewHeader": ["./app/components/ViewHeader.tsx"],
|
|
"@fusion/dashboard/app/plugins/types": ["./app/plugins/types.ts"],
|
|
"@fusion/dashboard/app/utils/projectStorage": ["./app/utils/projectStorage.ts"],
|
|
"@fusion/dashboard/app/utils/taskStuck": ["./app/utils/taskStuck.ts"]
|
|
}
|
|
},
|
|
"include": ["app/**/*"],
|
|
"exclude": ["app/**/*.test.ts", "app/**/*.test.tsx", "app/**/__tests__/**/*"]
|
|
}
|