fix(FN-1721): expose ViewHeader to dashboard plugin build
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
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
"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"]
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
"@fusion/test-utils": ["../core/src/__test-utils__/workspace.ts"],
|
||||
"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"]
|
||||
|
||||
@@ -125,6 +125,7 @@ export default defineConfig({
|
||||
alias: {
|
||||
"@fusion/core": resolve(__dirname, "../core/src/types.ts"),
|
||||
"@fusion/dashboard/app/components/TaskCard": resolve(__dirname, "app/components/TaskCard.tsx"),
|
||||
"@fusion/dashboard/app/components/ViewHeader": resolve(__dirname, "app/components/ViewHeader.tsx"),
|
||||
"@fusion/dashboard/app/plugins/types": resolve(__dirname, "app/plugins/types.ts"),
|
||||
"@fusion/dashboard/app/utils/projectStorage": resolve(__dirname, "app/utils/projectStorage.ts"),
|
||||
"@fusion/dashboard/app/utils/taskStuck": resolve(__dirname, "app/utils/taskStuck.ts"),
|
||||
|
||||
@@ -424,6 +424,7 @@ export default defineConfig({
|
||||
"@fusion/plugin-sdk": resolve(__dirname, "../plugin-sdk/src/index.ts"),
|
||||
"@fusion/test-utils": resolve(__dirname, "../core/src/__test-utils__/workspace.ts"),
|
||||
"@fusion/dashboard/app/components/TaskCard": resolve(__dirname, "app/components/TaskCard.tsx"),
|
||||
"@fusion/dashboard/app/components/ViewHeader": resolve(__dirname, "app/components/ViewHeader.tsx"),
|
||||
"@fusion/dashboard/app/plugins/types": resolve(__dirname, "app/plugins/types.ts"),
|
||||
"@fusion/dashboard/app/utils/projectStorage": resolve(__dirname, "app/utils/projectStorage.ts"),
|
||||
"@fusion/dashboard/app/utils/taskStuck": resolve(__dirname, "app/utils/taskStuck.ts"),
|
||||
|
||||
Reference in New Issue
Block a user