Skip to content

Commit 5b07417

Browse files
committed
refactor(bin): use local barrel file import for CLI entrypoint
Update the CLI to import from the local barrel file ('../index.js') instead of the package name. This ensures tests and CLI work in all environments without requiring a build step. No functional changes to the published module.
1 parent f2a9d76 commit 5b07417

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/tcx2webvtt.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { readFile } from 'node:fs/promises'
55
import { join, dirname } from 'node:path'
66
import { fileURLToPath } from 'node:url'
77
import { parseArgs } from 'node:util'
8+
89
import {
910
Cue,
1011
FCPReader,
@@ -14,7 +15,7 @@ import {
1415
TCXReader,
1516
TimelineMapper,
1617
WebVTTGenerator,
17-
} from 'tcx2webvtt'
18+
} from '../index.js'
1819

1920
const __filename = fileURLToPath(import.meta.url)
2021
const __dirname = dirname(__filename)

0 commit comments

Comments
 (0)