Skip to content

Commit

Permalink
fix!: no default value for alternativePortRange if explicit port
Browse files Browse the repository at this point in the history
…provided

resolves #15
  • Loading branch information
pi0 committed Nov 14, 2022
1 parent e0fc8bf commit 00366ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export async function getPort (config: GetPortInput = {}): Promise<PortNumber> {
random: false,
ports: [],
portRange: [],
alternativePortRange: [3000, 3100],
alternativePortRange: config.port ? [] : [3000, 3100],
host: undefined,
verbose: false,
...config,
Expand Down

0 comments on commit 00366ae

Please sign in to comment.