Skip to content

Migrate rush-lib from deprecated inquirer to @inquirer/* modular packages#5775

Draft
Copilot wants to merge 6 commits intomainfrom
copilot/replace-deprecated-inquirer-package
Draft

Migrate rush-lib from deprecated inquirer to @inquirer/* modular packages#5775
Copilot wants to merge 6 commits intomainfrom
copilot/replace-deprecated-inquirer-package

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 16, 2026

  • Migrate ChangeAction.ts, InteractiveUpgradeUI.ts, InteractiveUpgrader.ts off deprecated inquirer
  • Replace custom SearchListPrompt with @inquirer/search
  • Update package.json (add @inquirer/search, remove inquirer/@types/inquirer/figures)
  • Update nonbrowser-approved-packages.json
  • Take the current origin/main versions of pnpm-lock.yaml and repo-state.json (including 0ab0c12add — lodash removal)
  • Rerun rush update to produce lockfiles consistent with current main + new @inquirer/search dependency

Copilot AI and others added 3 commits April 15, 2026 23:55
…ynamic imports

Agent-Logs-Url: https://github.com/microsoft/rushstack/sessions/489f4c8b-19ff-4dd2-9198-b68f948590c4

Co-authored-by: dmichon-msft <26827560+dmichon-msft@users.noreply.github.com>
Agent-Logs-Url: https://github.com/microsoft/rushstack/sessions/489f4c8b-19ff-4dd2-9198-b68f948590c4

Co-authored-by: dmichon-msft <26827560+dmichon-msft@users.noreply.github.com>
import type { Interface } from 'node:readline';

// Modified from the choice list prompt in inquirer:
// https://github.com/SBoudrias/Inquirer.js/blob/inquirer%407.3.3/packages/inquirer/lib/prompts/list.js
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@copilot I had thought this prompt might do something special, but it sounds like the new @inquirer/search prompt is probably equivalent? In which case, go ahead and use that.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done in e74a019. SearchListPrompt.ts is deleted entirely — InteractiveUpgrader now calls @inquirer/search directly, passing a synchronous source function that filters the static project list by plain package name. @inquirer/core and figures are removed as direct dependencies.

Agent-Logs-Url: https://github.com/microsoft/rushstack/sessions/f1344299-0cfc-4f05-a56e-7808031c327e

Co-authored-by: dmichon-msft <26827560+dmichon-msft@users.noreply.github.com>
Agent-Logs-Url: https://github.com/microsoft/rushstack/sessions/0e45eb67-e915-4132-9b66-5a947b83d8c1

Co-authored-by: dmichon-msft <26827560+dmichon-msft@users.noreply.github.com>
Agent-Logs-Url: https://github.com/microsoft/rushstack/sessions/ac1cae6c-9bf6-43b4-9356-93df56d4ad6b

Co-authored-by: dmichon-msft <26827560+dmichon-msft@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs triage

Development

Successfully merging this pull request may close these issues.

2 participants