fix: support Windows launcher import paths
This commit is contained in:
13
bin/import-specifier.test.mjs
Normal file
13
bin/import-specifier.test.mjs
Normal 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',
|
||||
)
|
||||
})
|
||||
Reference in New Issue
Block a user