-
fix(js): add {projectRoot} prefix to d.ts fileset in typescript plugin (#35037)
发布于
2026-03-27 15:53:08 +00:00 Current Behavior
The TypeScript plugin emits a bare
**/*.d.tsfileset 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.tsso the hasher knows it's scoped to the
dependency project's root.Related Issue(s)
N/A — discovered while debugging e2e test failures.
下载附件