GeezerVison is showing github.com — chore: check in `package-lock.json` by JimMadge · Pull Request #434 · all-contributors/cli
Conversation
JimMadge
commented
Feb 9, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Closes #422
This adds a package-lock.json after running npm update.
I also downgraded chalk, which was upgraded in #399 as that package was causing the CLI to fail as newer versions don't support CJS imports (see #435)
I also updates how external packages are imported, as this was causing problems when running the CLI (at least for chalk).
I've added a linting ignore block for yargs imports. I think the rule (imports/no-unresolved) was being flagged because yargs/yargs isn't a path to a module, instead the yargs module exports yargs and helpers. Let me know if any of this looks wrong from a JS perspective @JoshuaKGoldberg 🙏.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
jdalrymple reacted with thumbs up emoji
This comment was marked as resolved.
Uh oh!
There was an error while loading. Please reload this page.
I think the rule (imports/no-unresolved) was being flagged because yargs/yargs isn't a path to a module, instead the yargs module exports yargs and helpers
Yeah, this whole thing again... I think it's another case of https://github.com/JoshuaKGoldberg/repros/tree/repro-eslint-config-and-eslint-plugin-import: a lacking feature in eslint-plugin-import that's been an ecosystem sticking point for a while. 😬
I've personally been disabling the rule in a lot of my projects. For the most part, if an import doesn't resolve, the file won't run at all - so I've found it to not be particularly helpful in projects that have tests.
|
JimMadge reacted with thumbs up emoji
lwasser reacted with eyes emoji
All reactions
-
👍
1 reaction
-
👀
1 reaction
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
I think the rule (imports/no-unresolved) was being flagged because yargs/yargs isn't a path to a module, instead the yargs module exports yargs and helpers
Yeah, this whole thing again... I think it's another case of https://github.com/JoshuaKGoldberg/repros/tree/repro-eslint-config-and-eslint-plugin-import: a lacking feature in eslint-plugin-import that's been an ecosystem sticking point for a while. 😬
I've personally been disabling the rule in a lot of my projects. For the most part, if an import doesn't resolve, the file won't run at all - so I've found it to not be particularly helpful in projects that have tests.
That makes sense. Disabling that rule globally probably makes the most sense.
|
lwasser reacted with rocket emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
As chalk >=5 doesn't support CJS imports
lwasser
changed the title
Check in package-lock.json
chore: check in package-lock.json
Feb 12, 2026
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.
Thank you @JimMadge !! this looks great to me. let's merge!
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
JimMadge reacted with hooray emoji
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Mar 6, 2026
This was referenced Oct 23, 2026
Reviewers
lwasser
lwasser approved these changes
jdalrymple
Awaiting requested review from jdalrymple
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
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.
|