Skip to content

Commit 4d47cd7

Browse files
committed
fix: use autocomplete prompt for interactive migrations
Switches to using an autocomplete prompt and bumps clack to get that.
1 parent 7abb250 commit 4d47cd7

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"homepage": "https://github.com/e18e/cli#readme",
5555
"dependencies": {
5656
"@arethetypeswrong/core": "^0.18.2",
57-
"@clack/prompts": "https://pkg.pr.new/bombshell-dev/clack/@clack/prompts@276",
57+
"@clack/prompts": "https://pkg.pr.new/bombshell-dev/clack/@clack/prompts@9a1412d",
5858
"@publint/pack": "^0.1.2",
5959
"fdir": "^6.4.6",
6060
"gunshi": "^0.26.3",

src/commands/migrate.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ export async function run(ctx: CommandContext<typeof meta.args>) {
2020
prompts.intro(`Migrating packages...`);
2121

2222
if (interactive) {
23-
const additionalTargets = await prompts.multiselect({
23+
const additionalTargets = await prompts.autocompleteMultiselect({
2424
message: 'Select packages to migrate',
25+
maxItems: 10,
2526
options: [...fixableReplacementsTargets].map((target) => ({
2627
value: target,
2728
label: target

0 commit comments

Comments
 (0)