发布

  • fix(js): remove redundant typescript project references (#33438)

    frostbyte_neo 发布于 2025-11-12 17:48:26 +00:00

    Current Behavior

    The @nx/js:typescript-sync generator adds project dependencies as
    TypeScript project references to each project's tsconfig.json and
    runtime tsconfig file (e.g., tsconfig.app.json, tsconfig.lib.json,
    etc.). This is redundant since projects' tsconfig.json files already
    reference the runtime tsconfig file, which would reference the
    dependencies.

    Expected Behavior

    The @nx/js:typescript-sync generator 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 a tsconfig.json file, it should add them to it.

    We've observed some performance improvement with this change while
    running the typecheck tasks.

    下载附件