Skip to content

Commit

Permalink
fix: do not list yarn@berry in prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Feb 22, 2022
1 parent 09a91ef commit 8cb92e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export async function run(fn: Runner, args: string[], options: DetectOptions = {
name: 'agent',
type: 'select',
message: 'Choose the agent',
choices: agents.map(value => ({ title: value, value })),
choices: agents.filter(i => !i.includes('@')).map(value => ({ title: value, value })),
})).agent
if (!agent)
return
Expand Down

0 comments on commit 8cb92e3

Please sign in to comment.