Description
Building @object-ui/plugin-report produces approximately 20 TS6059 errors during the DTS emit pass. The errors are all of the form:
TS6059: File '.../packages/types/src/<file>.ts' is not under 'rootDir'
'.../packages/plugin-report/src'.
'rootDir' is expected to contain all source files.
Affected files imported from packages/types/src/:
permissions.ts
tenant.ts
mobile.ts
designer.ts
api-types.ts
reports.ts
spec-report.ts
ai.ts
blocks.ts
views.ts
registry.ts
plugin-scope.ts
ui-action.ts
widget.ts
theme.ts
Root Cause
plugin-report's tsconfig.json has rootDir scoped to its own src/, but the unplugin:dts plugin pulls in files from the sibling packages/types package through re-exports in the types barrel file. These cross-package source files live outside plugin-report's rootDir.
The tsup/rollup build still emits working bundles despite the tsc errors, but the output is littered with diagnostics.
Expected Behavior
Either:
rootDir should be lifted to the monorepo root (or composite project root) for the DTS emit pass, or
- The DTS plugin should skip re-exported declarations that originate outside
rootDir.
Package(s) affected
packages/plugin-report — tsconfig.json rootDir configuration
Description
Building
@object-ui/plugin-reportproduces approximately 20TS6059errors during the DTS emit pass. The errors are all of the form:Affected files imported from
packages/types/src/:permissions.tstenant.tsmobile.tsdesigner.tsapi-types.tsreports.tsspec-report.tsai.tsblocks.tsviews.tsregistry.tsplugin-scope.tsui-action.tswidget.tstheme.tsRoot Cause
plugin-report'stsconfig.jsonhasrootDirscoped to its ownsrc/, but theunplugin:dtsplugin pulls in files from the siblingpackages/typespackage through re-exports in the types barrel file. These cross-package source files live outsideplugin-report'srootDir.The tsup/rollup build still emits working bundles despite the tsc errors, but the output is littered with diagnostics.
Expected Behavior
Either:
rootDirshould be lifted to the monorepo root (or composite project root) for the DTS emit pass, orrootDir.Package(s) affected
packages/plugin-report—tsconfig.jsonrootDirconfiguration