A new workspace-acyclicity invariant on main (run via the PR merge) flagged compound-engineering -> @fusion/dashboard -> compound-engineering: the plugin is listed in @fusion/dashboard's deps (for view loading) AND declared @fusion/dashboard as a runtime dependency, which the cycle check (deps+devDeps) and the 'bundled plugins must not depend on host packages' check both reject. The plugin's only @fusion/dashboard use is the type-only PluginDashboardViewContext import. Drop the @fusion/dashboard dependency and resolve that type via an ambient dashboard-interop.d.ts + tsconfig paths mapping (the fusion-plugin-dependency-graph interop pattern). Breaks the cycle; the host passes the real context at runtime.
14 lines
340 B
JSON
14 lines
340 B
JSON
{
|
|
"extends": "../tsconfig.base.json",
|
|
"compilerOptions": {
|
|
"outDir": "dist",
|
|
"rootDir": "src",
|
|
"jsx": "react-jsx",
|
|
"types": ["node", "vitest/globals"],
|
|
"paths": {
|
|
"@fusion/dashboard/app/plugins/types": ["./src/dashboard-interop.d.ts"]
|
|
}
|
|
},
|
|
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.d.ts"]
|
|
}
|