Skip to content

Commit

Permalink
style: semis
Browse files Browse the repository at this point in the history
  • Loading branch information
Septh committed May 27, 2024
1 parent ee73a11 commit d770db1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,16 @@ if (
}

if (entryPointIndex > 0) {
const entryPoint = process.argv[entryPointIndex];
const entryPoint = process.argv[entryPointIndex]
try {
process.argv[1] = await realpath(entryPoint);
process.argv[1] = await realpath(entryPoint)
}
catch {
process.argv[1] = path.resolve(entryPoint);
process.argv[1] = path.resolve(entryPoint)
}
process.argv.splice(entryPointIndex, 1);
process.argv.splice(entryPointIndex, 1)

await import(entryPoint);
await import(entryPoint)
}
else if (process.argv.includes('-v')) {
const { name, version } = module.createRequire(self)('../package.json')
Expand Down

0 comments on commit d770db1

Please sign in to comment.