Type the canonical CLI module import

This commit is contained in:
winewill committed 2026-11-03 12:51:08 +08:00
1 parent cbe275fe99
commit 5b6366f5bf
1 file changed
+1 -1
+1 -1
View File
@@ -22,7 +22,7 @@ if (import.meta.main) {
const entry = process.platform === 'win32' ? pathToFileURL(realpathSync.native(import.meta.filename)).href : import.meta.url
if (entry === import.meta.url) await runCli()
else {
const canonical: typeof import('./installed-bin.ts') = await import(entry)
const canonical = await import(entry) as typeof import('./installed-bin.ts')
await canonical.runCli()
}
}