Skip to content

Build: @object-ui/plugin-report emits TS6059 rootDir errors for types/src/* re-exports #2334

Description

@akarma-synetal

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:

  1. rootDir should be lifted to the monorepo root (or composite project root) for the DTS emit pass, or
  2. The DTS plugin should skip re-exported declarations that originate outside rootDir.

Package(s) affected

  • packages/plugin-reporttsconfig.json rootDir configuration

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions