From 7d4feed809c529fd22dba8ed7ee7ed52b2de585e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juste=20M=C3=A9thode=20B?= Date: Wed, 29 Mar 2023 10:05:39 +0100 Subject: [PATCH] fix: retrieving the value of the outDir option --- src/bin/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/index.ts b/src/bin/index.ts index 7eb72b2..a2f4b2c 100755 --- a/src/bin/index.ts +++ b/src/bin/index.ts @@ -10,7 +10,7 @@ program .option('-p, --project ', 'path to tsconfig.json') .option('-w, --watch', 'Observe file changes') .option( - '--outDir, --dir, --directory ', + '--outDir, --dir ', 'Run in a folder leaving the "outDir" of the tsconfig.json (relative path to tsconfig)' ) .option( @@ -36,7 +36,7 @@ const options = program.opts(); replaceTscAliasPaths({ configFile: options.project, watch: !!options.watch, - outDir: options.directory, + outDir: options.dir, verbose: !!options.verbose, debug: !!options.debug, resolveFullPaths: !!options.resolveFullPaths,