Commit 9a743d3
committed
fix(js): add {projectRoot} prefix to d.ts fileset in typescript plugin (#35037)
## 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.
(cherry picked from commit 6c92d92)1 parent 651ab34 commit 9a743d3
File tree
2 files changed
+92
-92
lines changed- packages/js/src/plugins/typescript
2 files changed
+92
-92
lines changed
0 commit comments