chore: add a clean script for maintainers#2583
Conversation
|
zimeg
left a comment
There was a problem hiding this comment.
@WilliamBergamin Thanks for thinking about this!
I'm wondering if we want to also remove the "dist" directory as part of this to avoid strange publications in odd CI environments? No blocker! 🚢 💨
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2583 +/- ##
=======================================
Coverage 87.50% 87.50%
=======================================
Files 62 62
Lines 10256 10256
Branches 418 418
=======================================
Hits 8974 8974
Misses 1260 1260
Partials 22 22
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Summary
These changes add a clean script for the project to clean up dependencies and package lock files, this allows for easier local development
git clean -xdf node_modules packages/**/node_modules— recursively removes all node_modules directories (ignored or untracked), including the root one. The -d flag removes directories, -x includes gitignored files, -f forces.git clean -xf '**/package-lock.json'— removes any package-lock.json that is NOT tracked by git. Git-tracked files are never touched by git clean, so the root lock file stays.Requirements