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 — refactor: Update calls to prettier functions to account for latest async API by jdalrymple · Pull Request #403 · all-contributors/cli

Conversation

@jdalrymple

@jdalrymple jdalrymple commented Jan 25, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

What: Due to the prettier update, the API has changed - now exposing async functions

Why: API changes with latest dep version no longer support sync functions

How: Went through each related function and updated them accordingly

Checklist:

  • Documentation
  • Tests
  • Ready to be merged
  • Added myself to contributors table

Related to #375

Sorry, something went wrong.

Uh oh!

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

All reactions
@jdalrymple jdalrymple mentioned this pull request Jan 25, 2026
chore(ci): move builds test suite, linting and deploy to gha #397
Closed
2 of 4 tasks
jdalrymple
jdalrymple commented Jan 25, 2026
View reviewed changes
Comment thread .github/workflows/test-deploy.yml Resolved

Uh oh!

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

jdalrymple
jdalrymple commented Jan 25, 2026
View reviewed changes
Comment thread .gitignore Resolved

Uh oh!

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

@jdalrymple
Should fix tests
71ac26b
# Conflicts:
#	package.json
#	src/init/__tests__/__snapshots__/add-contributors-list.js.snap
@jdalrymple
jdalrymple force-pushed the ci/fixing-tests branch from b3e76ac to 71ac26b Compare January 25, 2026 18:53
jdalrymple
jdalrymple commented Jan 25, 2026
View reviewed changes
Comment thread package.json Resolved

Uh oh!

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

@jdalrymple jdalrymple changed the title [WIP] Testing fixes for prettier update refactor: Update calls to prettier functions to account for latest async API Jan 25, 2026
@jdalrymple
Updating spacing
cc537b7
@jdalrymple
jdalrymple force-pushed the ci/fixing-tests branch from f0df138 to cc537b7 Compare January 25, 2026 19:04
@jdalrymple
jdalrymple marked this pull request as ready for review January 25, 2026 22:41
JoshuaKGoldberg
JoshuaKGoldberg reviewed Jan 25, 2026
View reviewed changes
Comment thread src/util/__tests__/config-file.js

const absentFile = './abc'
const absentConfileFileExpected = `Configuration file not found: ${absentFile}`
const absentConfigFileExpected = `Configuration file not found: ${absentFile}`

@JoshuaKGoldberg JoshuaKGoldberg Jan 25, 2026

Copy link
Copy Markdown
Contributor

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.

[Praise] Nice catch 😄

Sorry, something went wrong.

Uh oh!

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

jdalrymple reacted with laugh emoji
All reactions
  • 😄 1 reaction

@jdalrymple jdalrymple Jan 26, 2026

Copy link
Copy Markdown
Contributor Author

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 try to keep my clean up scope creeps to a minimum, but somethings i just hadddd to fix haha

Sorry, something went wrong.

Uh oh!

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

JoshuaKGoldberg reacted with laugh emoji lwasser reacted with hooray emoji
All reactions
  • 😄 1 reaction
  • 🎉 1 reaction
@jdalrymple

jdalrymple commented Jan 26, 2026

Copy link
Copy Markdown
Contributor Author

Once this is in, ill look at the next blocked PR 🫡

All reactions

Sorry, something went wrong.

Uh oh!

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

@lwasser

lwasser commented Jan 27, 2026

Copy link
Copy Markdown
Member

@jdalrymple thank you for this refactor! I have a few questions!

With these refactors we are moving towards ES modules (yay!) ✨

But when i build the package, link/install and run this locally i get an error:

❯ all-contributors init
file:///Users/lblablabla/allcontributors/cli/dist/cli.js:4
const path = require('path');
             ^
ReferenceError: require is not defined in ES module scope, you can use import instead
This file is being treated as an ES module because it has a '.js' file extension and '[/[[Users/lblablabla](file:///Users/lblablabla/)](file:///Users/lblablabla/)](file:///Users/lblablabla/allcontributors/cli/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
    at file:///[Users/lblablabla](file:///Users/lblablabla/)/allcontributors/cli/dist/cli.js:4:14
    at ModuleJob.run (node:internal/modules/esm/module_job:343:25)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:665:26)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5)

  1. As we refactor, do we need to add "type": "module" to support this in our package.json ? But if we add that then how do we manage the older syntax? neither work for me locally when i run all-contributors init . (adding it or not adding it) but it seems like something is off. If this is a larger dependency issue then maybe we do have to merge as is
  2. If not, am i doing something wrong when i build and install locally:

npm run build
npm link

We could also merge this and just add that in a separate pr (if needed) bare with me!
I ask this seeing that tests pass. And i'm fine with smaller quicker iterations

and if this is what others see, we probably need to add a test or two to catch it. but please let's start with making sure you can see the same issue that I see locally! THANK YOU!!

jdalrymple reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

@lwasser

lwasser commented Jan 27, 2026

Copy link
Copy Markdown
Member

Ok so when i don't add type:module (maybe the build system standardizes things? i haven't looked yet... i get a TYPEERROR related to yargs

TypeError: yargs.scriptName is not a function
    at getArgs (/Users/leahawasser/Documents/GitHub/allcontributors/cli/dist/cli.js:16:16)
    at run (/Users/leahawasser/Documents/GitHub/allcontributors/cli/dist/cli.js:99:18)
    at Object.<anonymous> (/Users/leahawasser/Documents/GitHub/allcontributors/cli/dist/cli.js:119:1)
    at Module._compile (node:internal/modules/cjs/loader:1706:14)
    at Object..js (node:internal/modules/cjs/loader:1839:10)
    at Module.load (node:internal/modules/cjs/loader:1441:32)
    at Function._load (node:internal/modules/cjs/loader:1263:12)
    at TracingChannel.traceSync (node:diagnostics_channel:328:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
    at Function.e

I think this might be a yargs version error . I looked at the tests when i merged pr's but i didn't test the CLI each time assuming test coverage.

jdalrymple reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

@lwasser

lwasser commented Jan 27, 2026

Copy link
Copy Markdown
Member

Ok it was bugging me - the fix is actually pinning yargs back to "yargs": "17.7.2". This is indeed a dependency issue. And the api was already broken and i missed it. thank goodness it's not deploying. I propose that we merge this. And we will have a larger set of fixes as we upgrade dependencies.

jdalrymple reacted with laugh emoji
All reactions
  • 😄 1 reaction

Sorry, something went wrong.

Uh oh!

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

@lwasser
lwasser self-requested a review January 27, 2026 04:03
lwasser
lwasser approved these changes Jan 27, 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.

opening a quick pr to modify yargs

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
@lwasser
lwasser merged commit 7d8c2bf into all-contributors:main Jan 27, 2026
1 check passed

Uh oh!

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

@jdalrymple
jdalrymple deleted the ci/fixing-tests branch January 28, 2026 04:07
@jdalrymple jdalrymple mentioned this pull request Feb 14, 2026
fix: Fixing issues with commands introduced in #403 #440
Merged
3 of 4 tasks
lwasser pushed a commit to lwasser/cli that referenced this pull request Feb 19, 2026
@jdalrymple
fix: Fixing issues with commands introduced in all-contributors#403 (a…
797e167
…ll-contributors#440)

* Fixing issues with commands introduced in commit  7d8c2bf

Also replacing chalk with something lighter weight

* Linting
@lwasser lwasser mentioned this pull request Feb 21, 2026
chore(main): release 6.26.2 #451
Closed
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
+1 more reviewer
@JoshuaKGoldberg JoshuaKGoldberg JoshuaKGoldberg left review comments
Reviewers whose approvals may not affect merge requirements

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.

Uh oh!

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

3 participants

@jdalrymple @lwasser @JoshuaKGoldberg
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.