-
Notifications
You must be signed in to change notification settings - Fork 80
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
chore: move common devDependencies to top-level package.json #1098
Conversation
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## master #1098 +/- ##
=======================================
Coverage 75.52% 75.52%
=======================================
Files 80 80
Lines 16167 16167
Branches 1517 1517
=======================================
Hits 12210 12210
Misses 3918 3918
Partials 39 39 ☔ View full report in Codecov by Sentry. |
It looks ok for the mqtt package but in other ones I also see new packages introduced. Why is it the case? |
In cases where a |
As some of the dependency versions got changed in the individual |
I'm wondering, don't we have a script dedicated to this kind of management of the dev deps? I talking about this, if it failed to check consistency what is there for? |
Oh, that is a very good point! In theory, the script should have indicated this kind of redundancy before. However, I think the actual check is currently disabled due to this line: I will investigate and update the script if possible :) |
The script should now be fixed by 0452ce8 |
Ok, thank you @JKRhb, my understanding is that in the future the script will pick up inconsistencies once again and if something is off the Github action will warn us. Is that correct? |
Exactly :) If any devDependency could be moved to the top-level |
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.
Looks good to me!! we should document somewhere the stack that we are using for writing tests so that newcomers don't accidentally add new testing frameworks like jest
.
Very good point! Should we open an issue for that? |
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.
LGTM
Out of curiosity, I tried out if you can reduce redundancy in the
package.json
files by including shareddevDependencies
only in the top-levelpackage.json
file – and apparently, that works :)This might require some double-checking but it could simplify updating shared devDependencies like TypeScript, eslint, and prettier in the future.