-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add ts-clean script #10156
add ts-clean script #10156
Conversation
522053c
to
94e3947
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the CI error is simply because @theia/timeline
incorrectly does not have a package.spec.ts
so it fails to execute it's tests.
@vince-fugnitto CI is fixed \o/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look good to me, removing/moving a file now correctly leads to typescript compilation errors due to the removed .js
files.
When doing refactorings, one might end up renaming/deleting TypeScript source files. But if a build was run previously, the outputted JavaScript files will still be in the build output folder. Then extensions that depend on the refactored package will not fail to build because the old path still resolves to the lingering JavaScript files. Add `ts-clean` script that deletes all generated files without a corresponding source file. Add the missing `compile` script to most packages.
e678af8
to
1de2cbf
Compare
When doing refactorings, one might end up renaming/deleting TypeScript
source files. But if a build was run previously, the outputted
JavaScript files will still be in the build output folder. Then
extensions that depend on the refactored package will not fail to build
because the old path still resolves to the lingering JavaScript files.
Add
ts-clean
script that deletes all generated files without acorresponding source file.
Add the missing
compile
script to most packages.How to test
npx ts-clean dev-packages/* packages/* --dry
.The tool supports a
--watch (-w)
mode, use--dry
to only get logs without touching the fs.Review checklist
Reminder for reviewers