-
fix(js): remove redundant typescript project references (#33438)
发布于
2025-11-12 17:48:26 +00:00 Current Behavior
The
@nx/js:typescript-syncgenerator adds project dependencies as
TypeScript project references to each project'stsconfig.jsonand
runtime tsconfig file (e.g.,tsconfig.app.json,tsconfig.lib.json,
etc.). This is redundant since projects'tsconfig.jsonfiles already
reference the runtime tsconfig file, which would reference the
dependencies.Expected Behavior
The
@nx/js:typescript-syncgenerator should add project dependencies
as TypeScript project references to each project's runtime tsconfig file
(e.g.,tsconfig.app.json,tsconfig.lib.json, etc.). If the project
only has atsconfig.jsonfile, it should add them to it.We've observed some performance improvement with this change while
running thetypechecktasks.下载附件