发布

  • fix(js): add {projectRoot} prefix to d.ts fileset in typescript plugin (#35037)

    frostbyte_neo 发布于 2026-03-27 15:53:08 +00:00

    Current Behavior

    The TypeScript plugin emits a bare **/*.d.ts fileset input (without a
    {projectRoot}/ prefix) for dependency file tracking. The Nx hasher
    expects all filesets to start with either {projectRoot}/ or
    {workspaceRoot}/, so it logs a warning for every project:

    NX **/*.d.ts does not start with {workspaceRoot}/. This will throw an error in Nx 20.
    

    Expected Behavior

    No warning is emitted. The fileset correctly uses
    {projectRoot}/**/*.d.ts so the hasher knows it's scoped to the
    dependency project's root.

    Related Issue(s)

    N/A — discovered while debugging e2e test failures.

    下载附件