Skip to content

Commit 7d4feed

Browse files
committed
fix: retrieving the value of the outDir option
1 parent 799e749 commit 7d4feed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ program
1010
.option('-p, --project <file>', 'path to tsconfig.json')
1111
.option('-w, --watch', 'Observe file changes')
1212
.option(
13-
'--outDir, --dir, --directory <dir>',
13+
'--outDir, --dir <dir>',
1414
'Run in a folder leaving the "outDir" of the tsconfig.json (relative path to tsconfig)'
1515
)
1616
.option(
@@ -36,7 +36,7 @@ const options = program.opts();
3636
replaceTscAliasPaths({
3737
configFile: options.project,
3838
watch: !!options.watch,
39-
outDir: options.directory,
39+
outDir: options.dir,
4040
verbose: !!options.verbose,
4141
debug: !!options.debug,
4242
resolveFullPaths: !!options.resolveFullPaths,

0 commit comments

Comments
 (0)