Repository navigation
perf(cli): 34% smaller CLI bundle, 15x smaller prompt deps - #1671
Open
lukecotter wants to merge 1 commit into
Open
lukecotter wants to merge 1 commit into
lukecotter wants to merge 1 commit into
Conversation
cristiand391
self-requested a review
April 14, 2025 16:13
inquirer 8 pulls in lodash, rxjs and ora. lodash 4.17.21 has SNYK-JS-LODASH-15869625 and there is no patched inquirer 8.x. The CLI uses only 3 prompt types, so use those packages directly. They ship CommonJS, so the build does not change. Keep the REPL pause/resume around each prompt. Keep the Ctrl+C behaviour: the new prompts throw ExitPromptError, so send SIGINT as inquirer 8 did.
lukecotter
force-pushed
the
feat-update-inquirer-to-inquirer-prompts
branch
from
October 6, 2026 10:45
2c78ade to
2c78c78
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Replaces
inquirerwith@inquirer/input,@inquirer/passwordand@inquirer/confirm.The CLI uses only these 3 prompt types.
lib/cli/cli.js), minifiedBundles size tested using esbuild (
--platform=node --minify).The change also removes lodash 4.17.21 (SNYK-JS-LODASH-15869625), rxjs and ora. Fixes #1788. Makes the lodash override in #1834 unnecessary.
The new inquirer packages ship CommonJS, so the build and supported Node versions do not need to change.