chore(repo): make clean scripts cross-platform (replace rm -rf with del-cli) #8497
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #8496
Background
On Windows,
rm
is not available by default, causing all clean/build/test commands to fail with'rm' is not recognized as an internal or external command
. This completely blocks Windows contributors and CI runners from using the development toolchain.The issue affects 40+ packages across the monorepo, all using
rm -rf
in their clean scripts. @gr2m recommended thedel-cli
approach in the issue comments.Summary
Replaced Unix-only
rm -rf
commands with cross-platformdel-cli
in all package.json clean scripts:"clean": "rm -rf dist *.tsbuildinfo"
"clean": "del-cli dist *.tsbuildinfo"
Added
del-cli
as a dev-only dependency at the workspace root. No runtime code changes, no published API changes.Manual Verification
Before this PR (Windows PowerShell):
After this PR (Windows PowerShell):
Cross-platform verification:
Tasks
pnpm changeset
in the project root)pnpm prettier-fix
in the project root)Future Work
None required. This is a complete fix for the Windows compatibility issue.
Related Issues
Fixes #8496