Skip to content

refactor!: switch to @clack/prompts#232

Open
hyperz111 wants to merge 7 commits intoeslint:mainfrom
hyperz111:clack
Open

refactor!: switch to @clack/prompts#232
hyperz111 wants to merge 7 commits intoeslint:mainfrom
hyperz111:clack

Conversation

@hyperz111
Copy link
Copy Markdown
Contributor

@hyperz111 hyperz111 commented Jan 31, 2026

Prerequisites checklist

What is the purpose of this pull request?

Replace the unmaintained enquirer with @clack/prompts.

What changes did you make? (Give an overview)

I switch all codebase to use @clack/prompts.

Related Issues

#229

Is there anything you'd like reviewers to focus on?

We can undraft and merge this when i'm done.

@eslintbot eslintbot added this to Triage Jan 31, 2026
@github-project-automation github-project-automation Bot moved this to Needs Triage in Triage Jan 31, 2026
@hyperz111 hyperz111 marked this pull request as ready for review February 1, 2026 09:49
@github-actions
Copy link
Copy Markdown
Contributor

Hi everyone, it looks like we lost track of this pull request. Please review and see what the next steps are. This pull request will auto-close in 7 days without an update.

@github-actions github-actions Bot added the Stale label Feb 11, 2026
@hyperz111
Copy link
Copy Markdown
Contributor Author

@aladdin-add, can you review this?

@aladdin-add aladdin-add self-requested a review February 12, 2026 02:38
@github-actions github-actions Bot removed the Stale label Feb 12, 2026
@snitin315
Copy link
Copy Markdown
Contributor

@hyperz111 There a some conflicts, can you please resolve them?

@snitin315 snitin315 moved this from Needs Triage to Implementing in Triage Feb 14, 2026
@snitin315 snitin315 self-requested a review February 14, 2026 10:48
@hyperz111
Copy link
Copy Markdown
Contributor Author

@hyperz111 There a some conflicts, can you please resolve them?

But what?

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the codebase to replace the unmaintained enquirer library with @clack/prompts v1.0.0. The migration also removes the custom ansi-colors based logging module in favor of @clack/prompts' built-in logging functionality.

Changes:

  • Replaced enquirer and ansi-colors dependencies with @clack/prompts v1.0.0
  • Migrated all interactive prompts from enquirer's API to @clack/prompts' API (changing from array-based question definitions to object-based with function values)
  • Removed custom lib/utils/logging.js module and replaced all logging calls with @clack/prompts log functions
  • Updated tests to reflect the dependency changes and new logging import

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
package.json Replaced ansi-colors and enquirer with @clack/prompts v1.0.0
lib/utils/logging.js Removed custom logging module (replaced by @clack/prompts log functions)
lib/utils/npm-utils.js Updated import to use log from @clack/prompts
lib/questions.js Refactored all question definitions from enquirer format to @clack/prompts format with object-based structure
lib/config-generator.js Replaced enquirer.prompt calls with p.group wrapper, updated all logging to use p.log methods
bin/create-config.js Added intro/outro from @clack/prompts, removed custom error handling for ERR_USE_AFTER_CLOSE
tests/utils/npm-utils.spec.js Updated test to use semver instead of enquirer, modified log stubbing to import from @clack/prompts

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/questions.js
Comment thread tests/utils/npm-utils.spec.js
Comment thread lib/config-generator.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Implementing

Development

Successfully merging this pull request may close these issues.

4 participants