-
fix(js): skip TS project references migration for non-TS-solution workspaces (#33467)
发布于
2025-11-12 22:58:31 +00:00 Current Behavior
The
remove-redundant-ts-project-referencesmigration fails with an
error when run on workspaces that don't have a roottsconfig.json
file, such as nx-examples.Expected Behavior
The migration should skip workspaces that are not using TypeScript
solution setup instead of throwing an error.Related Issue(s)
Fixes the issue encountered when running the migration on
nrwl/nx-examples repo.Changes
- Added check to skip migration if workspace is not using TS solution
setup - Updated test setup to properly configure TS solution for existing
tests - Added new test cases to verify skip behavior
The migration now uses
isUsingTsSolutionSetup()to detect if:tsconfig.base.jsonexiststsconfig.jsonexists and extends the base- Package manager workspaces are configured
- Proper TS solution structure is in place
Workspaces missing any of these requirements will have the migration
skip silently.🤖 Generated with Claude Code
Co-authored-by: Claude noreply@anthropic.com
下载附件
- Added check to skip migration if workspace is not using TS solution