GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore: check in `package-lock.json` by JimMadge · Pull Request #434 · all-contributors/cli

Conversation

@JimMadge

@JimMadge JimMadge commented Feb 9, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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
All reactions
  • 👍 1 reaction
@JimMadge
JimMadge requested review from JoshuaKGoldberg and lwasser February 9, 2026 16:40
@JimMadge

This comment was marked as resolved.

Sign in to view
lwasser
lwasser reviewed Feb 10, 2026
View reviewed changes
Comment thread src/cli.js Resolved

Uh oh!

There was an error while loading. Please reload this page.

@JoshuaKGoldberg JoshuaKGoldberg mentioned this pull request Feb 10, 2026
🛠️ Tooling: Switch from CJS to ESM #435
Closed
@JoshuaKGoldberg

JoshuaKGoldberg commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

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.

@JimMadge

JimMadge commented Feb 10, 2026

Copy link
Copy Markdown
Member Author

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
All reactions
  • 🚀 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

JimMadge added 2 commits February 11, 2026 14:47
@JimMadge
Add package-lock.json
5619bd2
@JimMadge
build: downgrade chalk
4b20335
As chalk >=5 doesn't support CJS imports
@JimMadge
JimMadge force-pushed the package-lock branch from c91afdc to 4b20335 Compare February 11, 2026 14:51
@JimMadge
JimMadge requested review from jdalrymple and lwasser February 11, 2026 14:59
@lwasser
Merge branch 'main' into package-lock
d667a8c
@lwasser lwasser changed the title Check in package-lock.json chore: check in package-lock.json Feb 12, 2026
lwasser
lwasser approved these changes Feb 12, 2026
View reviewed changes

@lwasser lwasser left a comment

Copy link
Copy Markdown
Member

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
All reactions
  • 🎉 1 reaction
@lwasser
lwasser merged commit 5de78d9 into all-contributors:main Feb 12, 2026
4 checks passed

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Mar 6, 2026
chore(main): release all-contributors-cli 7.0.0 #476
Closed
chore(main): release 6.27.0 #483
Closed
This was referenced Oct 23, 2026
chore(main): release 6.27.0 #581
Closed
chore(release): release 7.0.0 #583
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@lwasser lwasser lwasser approved these changes
@JoshuaKGoldberg JoshuaKGoldberg Awaiting requested review from JoshuaKGoldberg
@jdalrymple jdalrymple Awaiting requested review from jdalrymple

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Tooling: Check package-lock.json into the repo

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@JimMadge @JoshuaKGoldberg @jdalrymple @lwasser
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.