From 3b97bdeee283d7dd8bdc853254d7641bc1c76848 Mon Sep 17 00:00:00 2001 From: Anton Gilgur Date: Thu, 17 Sep 2020 03:28:08 -0400 Subject: [PATCH 1/2] fix: resolve broken link to preserveConstEnums - spec.md was renamed to spec-ARCHIVED.md in the TypeScript repo, so link started 404'ing - as it's now archived, perhaps this should point somewhere else? e.g. the const enums section in the Enums doc in the Handbook or the preserveConstEnums description in the TSConfig Reference? - they both have different text than the spec, so unsure --- .../documentation/copy/en/project-config/Compiler Options.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/documentation/copy/en/project-config/Compiler Options.md b/packages/documentation/copy/en/project-config/Compiler Options.md index 8a7a8ef5a573..d2e0cdeff6da 100644 --- a/packages/documentation/copy/en/project-config/Compiler Options.md +++ b/packages/documentation/copy/en/project-config/Compiler Options.md @@ -97,7 +97,7 @@ Option | Type | Default `--outDir` | `string` | | Redirect output structure to the directory. `--outFile` | `string` | | Concatenate and emit output to single file. The order of concatenation is determined by the list of files passed to the compiler on the command line along with triple-slash references and imports. See [output file order documentation](https://github.com/Microsoft/TypeScript/wiki/FAQ#how-do-i-control-file-ordering-in-combined-output---out-) for more details. `paths`[2] | `Object` | | List of path mapping entries for module names to locations relative to the `baseUrl`. See [Module Resolution documentation](/docs/handbook/module-resolution.html#path-mapping) for more details. -`--preserveConstEnums` | `boolean` | `false` | Do not erase const enum declarations in generated code. See [const enums documentation](https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md#94-constant-enum-declarations) for more details. +`--preserveConstEnums` | `boolean` | `false` | Do not erase const enum declarations in generated code. See [const enums documentation](https://github.com/microsoft/TypeScript/blob/master/doc/spec-ARCHIVED.md#94-constant-enum-declarations) for more details. `--preserveSymlinks` | `boolean` | `false` | Do not resolve symlinks to their real path; treat a symlinked file like a real one. `--preserveWatchOutput` | `boolean` | `false` | Keep outdated console output in watch mode instead of clearing the screen `--pretty` | `boolean` | `true` unless piping to another program or redirecting output to a file | Stylize errors and messages using color and context. From b1d168361387ae3691535926e2ab6b13902e26f3 Mon Sep 17 00:00:00 2001 From: Orta Therox Date: Fri, 18 Sep 2020 10:58:37 -0400 Subject: [PATCH 2/2] Update packages/documentation/copy/en/project-config/Compiler Options.md --- .../documentation/copy/en/project-config/Compiler Options.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/documentation/copy/en/project-config/Compiler Options.md b/packages/documentation/copy/en/project-config/Compiler Options.md index d2e0cdeff6da..ff8f03ebe039 100644 --- a/packages/documentation/copy/en/project-config/Compiler Options.md +++ b/packages/documentation/copy/en/project-config/Compiler Options.md @@ -97,7 +97,7 @@ Option | Type | Default `--outDir` | `string` | | Redirect output structure to the directory. `--outFile` | `string` | | Concatenate and emit output to single file. The order of concatenation is determined by the list of files passed to the compiler on the command line along with triple-slash references and imports. See [output file order documentation](https://github.com/Microsoft/TypeScript/wiki/FAQ#how-do-i-control-file-ordering-in-combined-output---out-) for more details. `paths`[2] | `Object` | | List of path mapping entries for module names to locations relative to the `baseUrl`. See [Module Resolution documentation](/docs/handbook/module-resolution.html#path-mapping) for more details. -`--preserveConstEnums` | `boolean` | `false` | Do not erase const enum declarations in generated code. See [const enums documentation](https://github.com/microsoft/TypeScript/blob/master/doc/spec-ARCHIVED.md#94-constant-enum-declarations) for more details. +`--preserveConstEnums` | `boolean` | `false` | Do not erase const enum declarations in generated code. See [const enums documentation](https://www.typescriptlang.org/docs/handbook/enums.html#const-enums) for more details. `--preserveSymlinks` | `boolean` | `false` | Do not resolve symlinks to their real path; treat a symlinked file like a real one. `--preserveWatchOutput` | `boolean` | `false` | Keep outdated console output in watch mode instead of clearing the screen `--pretty` | `boolean` | `true` unless piping to another program or redirecting output to a file | Stylize errors and messages using color and context.