From 555ff214f136d7f54176ce7bbe90558f989dcfa7 Mon Sep 17 00:00:00 2001 From: Mark Bradley Date: Fri, 1 Oct 2021 19:52:10 -0400 Subject: [PATCH 1/3] Adds --emit to --help output. --- src/bin.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin.ts b/src/bin.ts index 43974b046..df26f9272 100644 --- a/src/bin.ts +++ b/src/bin.ts @@ -158,6 +158,7 @@ export function main( --pretty Use pretty diagnostic formatter (usually enabled by default) --skip-project Skip reading \`tsconfig.json\` --skip-ignore Skip \`--ignore\` checks + --emit Emit output files into .ts-node directory --scope Scope compiler to files within \`scopeDir\`. Anything outside this directory is ignored. --scope-dir Directory for \`--scope\` --prefer-ts-exts Prefer importing TypeScript files over JavaScript files From 9143167c47fc71bf5fd024722f81ab33dc210532 Mon Sep 17 00:00:00 2001 From: Mark Bradley Date: Fri, 1 Oct 2021 20:04:44 -0400 Subject: [PATCH 2/3] Add backticks, because Andrew is impossible to please. --- src/bin.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin.ts b/src/bin.ts index df26f9272..162324305 100644 --- a/src/bin.ts +++ b/src/bin.ts @@ -158,7 +158,7 @@ export function main( --pretty Use pretty diagnostic formatter (usually enabled by default) --skip-project Skip reading \`tsconfig.json\` --skip-ignore Skip \`--ignore\` checks - --emit Emit output files into .ts-node directory + --emit Emit output files into \`.ts-node\` directory --scope Scope compiler to files within \`scopeDir\`. Anything outside this directory is ignored. --scope-dir Directory for \`--scope\` --prefer-ts-exts Prefer importing TypeScript files over JavaScript files @@ -288,7 +288,7 @@ export function main( } if (showConfig) { - const ts = (service.ts as any) as TSInternal; + const ts = service.ts as any as TSInternal; if (typeof ts.convertToTSConfig !== 'function') { console.error( 'Error: --show-config requires a typescript versions >=3.2 that support --showConfig' From d06f965998206a6fdbc14869c6c31e5ad1c36cc4 Mon Sep 17 00:00:00 2001 From: Mark Bradley Date: Fri, 1 Oct 2021 20:34:11 -0400 Subject: [PATCH 3/3] Removed formatting change introduced by a different version of prettier. --- src/bin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin.ts b/src/bin.ts index 162324305..900383d71 100644 --- a/src/bin.ts +++ b/src/bin.ts @@ -288,7 +288,7 @@ export function main( } if (showConfig) { - const ts = service.ts as any as TSInternal; + const ts = (service.ts as any) as TSInternal; if (typeof ts.convertToTSConfig !== 'function') { console.error( 'Error: --show-config requires a typescript versions >=3.2 that support --showConfig'