Skip to content

Commit

Permalink
fix: support port range fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Apr 8, 2024
1 parent e27cb99 commit c979872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ cli
.option('--open', 'Open browser', { default: true })
.action(async (options) => {
const host = options.host
const port = await getPort({ port: options.port })
const port = await getPort({ port: options.port, portRange: [7777, 9000] })

if (process.env.ESLINT_CONFIG)
options.config ||= process.env.ESLINT_CONFIG
Expand Down

0 comments on commit c979872

Please sign in to comment.