fix: support Windows launcher import paths

This commit is contained in:
Vasanthdev2004
2026-04-01 12:43:14 +05:30
parent 2d7aa9c841
commit 4ce7dcf91e
3 changed files with 22 additions and 1 deletions

7
bin/import-specifier.mjs Normal file
View File

@@ -0,0 +1,7 @@
import { join } from 'path'
import { pathToFileURL } from 'url'
export function getDistImportSpecifier(baseDir) {
const distPath = join(baseDir, '..', 'dist', 'cli.mjs')
return pathToFileURL(distPath).href
}