swagger icon indicating copy to clipboard operation
swagger copied to clipboard

Swagger plugin generator doesn't respect project references

Open Forceres opened this issue 3 months ago • 0 comments

Is there an existing issue for this?

  • [x] 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
  • [x] Linux

Other

No response

Forceres avatar Nov 27 '25 23:11 Forceres