Skip to content

Commit

Permalink
chore: test cr
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyinws committed Jul 19, 2024
1 parent 492d5df commit 65bf350
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ export const unpluginFactory: UnpluginFactory<Options | undefined> = (rawOptions
const options = resolveOptions(rawOptions)

async function detectPort() {
// eslint-disable-next-line no-console
console.log('detect port')
const isAvailable = await checkPort(options.port!)
if (!isAvailable)
options.port = await getRandomPort()
Expand Down

0 comments on commit 65bf350

Please sign in to comment.