From 4ee6d28ecee7fcdc3c42ae3714845e80b303cab6 Mon Sep 17 00:00:00 2001 From: Denis LE Date: Thu, 26 Dec 2019 14:57:16 +0100 Subject: [PATCH 1/2] doc: add precision regarding `--files` option --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5abef90cf..5966488bd 100644 --- a/README.md +++ b/README.md @@ -139,7 +139,7 @@ _Environment variable denoted in parentheses._ * `-O, --compiler-options [opts]` JSON object to merge with compiler options (`TS_NODE_COMPILER_OPTIONS`) * `--dir` Specify working directory for config resolution (`TS_NODE_CWD`, default: `process.cwd()`) * `--scope` Scope compiler to files within `cwd` (`TS_NODE_SCOPE`, default: `false`) -* `--files` Load files from `tsconfig.json` on startup (`TS_NODE_FILES`, default: `false`) +* `--files` Load `files` and `include`/`exclude` from `tsconfig.json` on startup (`TS_NODE_FILES`, default: `false`) * `--pretty` Use pretty diagnostic formatter (`TS_NODE_PRETTY`, default: `false`) * `--skip-project` Skip project config resolution and loading (`TS_NODE_SKIP_PROJECT`, default: `false`) * `--skip-ignore` Skip ignore checks (`TS_NODE_SKIP_IGNORE`, default: `false`) @@ -215,7 +215,7 @@ An alternative approach for definitions of third-party libraries are [triple-sla import UntypedJsLib from "untyped_js_lib" ``` -**Tip:** If you _must_ use `files`, enable `--files` flags or set `TS_NODE_FILES=true`. +**Tip:** If you _must_ use `files` or `include`/`exclude`, enable `--files` flags or set `TS_NODE_FILES=true`. ## Watching and Restarting From 12fc4b7293c162dfa8e45168959970c34133fc35 Mon Sep 17 00:00:00 2001 From: Denis LE Date: Sat, 4 Jan 2020 12:42:07 +0100 Subject: [PATCH 2/2] Rewording --- README.md | 4 ++-- src/bin.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5966488bd..b7389536e 100644 --- a/README.md +++ b/README.md @@ -139,7 +139,7 @@ _Environment variable denoted in parentheses._ * `-O, --compiler-options [opts]` JSON object to merge with compiler options (`TS_NODE_COMPILER_OPTIONS`) * `--dir` Specify working directory for config resolution (`TS_NODE_CWD`, default: `process.cwd()`) * `--scope` Scope compiler to files within `cwd` (`TS_NODE_SCOPE`, default: `false`) -* `--files` Load `files` and `include`/`exclude` from `tsconfig.json` on startup (`TS_NODE_FILES`, default: `false`) +* `--files` Load `files`, `include` and `exclude` from `tsconfig.json` on startup (`TS_NODE_FILES`, default: `false`) * `--pretty` Use pretty diagnostic formatter (`TS_NODE_PRETTY`, default: `false`) * `--skip-project` Skip project config resolution and loading (`TS_NODE_SKIP_PROJECT`, default: `false`) * `--skip-ignore` Skip ignore checks (`TS_NODE_SKIP_IGNORE`, default: `false`) @@ -215,7 +215,7 @@ An alternative approach for definitions of third-party libraries are [triple-sla import UntypedJsLib from "untyped_js_lib" ``` -**Tip:** If you _must_ use `files` or `include`/`exclude`, enable `--files` flags or set `TS_NODE_FILES=true`. +**Tip:** If you _must_ use `files`, `include`, or `exclude`, enable `--files` flags or set `TS_NODE_FILES=true`. ## Watching and Restarting diff --git a/src/bin.ts b/src/bin.ts index 6a78a2e69..718de832a 100644 --- a/src/bin.ts +++ b/src/bin.ts @@ -127,7 +127,7 @@ export function main (argv: string[]) { --dir Specify working directory for config resolution --scope Scope compiler to files within \`cwd\` only - --files Load files from \`tsconfig.json\` on startup + --files Load \`files\`, \`include\` and \`exclude\` from \`tsconfig.json\` on startup --pretty Use pretty diagnostic formatter (usually enabled by default) --skip-project Skip reading \`tsconfig.json\` --skip-ignore Skip \`--ignore\` checks