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

View File

@@ -0,0 +1,13 @@
import assert from 'node:assert/strict'
import test from 'node:test'
import { getDistImportSpecifier } from './import-specifier.mjs'
test('builds a file URL import specifier for dist/cli.mjs', () => {
const specifier = getDistImportSpecifier('C:\\repo\\bin')
assert.equal(
specifier,
'file:///C:/repo/dist/cli.mjs',
)
})