Skip to content

Commit

Permalink
fix(cli): issue deferring to local CLI when dealing with next (unrele…
Browse files Browse the repository at this point in the history
…ased) major versions of local CLIs
  • Loading branch information
rstoenescu committed Aug 18, 2023
1 parent 6e90a5f commit af0cb1e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cli/bin/quasar.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ else {
// deferring to locally installed Quasar CLI
if (localFile.endsWith('.js')) {
// local CLI is in ESM format by convention
import(localFile)
const { pathToFileURL } = await import('node:url')
import(
pathToFileURL(localFile)
)
}
else {
const { createRequire } = await import('node:module')
Expand Down

0 comments on commit af0cb1e

Please sign in to comment.