Skip to content

Swagger plugin generator doesn't respect project references #3641

@Forceres

Description

@Forceres

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When you have some packages with project references (composite: true) and then import them to our NestJS app (with tsconfig references option), run generate-metadata.ts, you will get following error

error TS6305: Output file 'libs/data-access/dist/index.d.ts' has not been built from source file 'libs/data-access/src/index.ts'.

Minimum reproduction code

...

Steps to reproduce

No response

Expected behavior

It should respect project references and successfully generate metadata.

Package version

11.2.3

NestJS version

11.1.9

Node.js version

22.18.0

In which operating systems have you tested?

  • macOS
  • Windows
  • Linux

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions