-
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
dep: replace colors
with chalk
#10612
Conversation
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 can confirm that the application starts correctly and that the download:plugins
command works as expected (with colors and everything).
With the changes in place, no direct references to the colors
package exist anymore in the repo 👍
doc/Migration.md
Outdated
|
||
```json | ||
"resolutions": { | ||
"**/colors": "1.4.0" |
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.
Maybe we can be more generic and not assume the version needed, so long as it's not the newest one? e.g.:
"**/colors": "<=1.4.0"
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 confirmed that <=1.4.0
works correctly when building a downstream application, and adjusted the migration documentation.
The commit replaces the `colors.js` dependency with `chalk` due to a recent deliberate breakage by the author. The `chalk` dependency is a well maintained alternative by the open-source community. The change also includes a migration guide update so that downstream applications can include a resolution in their products if necessary. Signed-off-by: vince-fugnitto <[email protected]>
cb806ab
to
05f009f
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.
LGTM, thanks Vince!
What it does
The pull-request updates the problematic colors.js dependency with chalk. In addition, the migration guide was also updated to include a note about the possibility of using resolutions in order not to pull the problematic dependency version (which may be pulled transitively through
electron-rebuild
for example).How to test
Review checklist
Reminder for reviewers
Signed-off-by: vince-fugnitto [email protected]