Skip to content

Commit 769dfc7

Browse files
Update --pretty default
1 parent e0d966f commit 769dfc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/Compiler Options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Option | Type | Default
5959
`--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.
6060
`--preserveSymlinks` | `boolean` | `false` | Do not resolve symlinks to their real path; treat a symlinked file like a real one.
6161
`--preserveWatchOutput` | `boolean` | `false` | Keep outdated console output in watch mode instead of clearing the screen
62-
`--pretty`<sup>[1]</sup> | `boolean` | `false` | Stylize errors and messages using color and context.
62+
`--pretty` | `boolean` | `true` unless piping to another program or redirecting output to a file | Stylize errors and messages using color and context.
6363
`--project`<br/>`-p` | `string` | | Compile a project given a valid configuration file.<br/>The argument can be a file path to a valid JSON configuration file, or a directory path to a directory containing a `tsconfig.json` file.<br/>See [tsconfig.json](./tsconfig.json.md) documentation for more details.
6464
`--reactNamespace` | `string` | `"React"` | DEPRECATED. Use `--jsxFactory` instead.<br/>Specifies the object invoked for `createElement` and `__spread` when targeting `"react"` JSX emit.
6565
`--removeComments` | `boolean` | `false` | Remove all comments except copy-right header comments beginning with `/*!`

0 commit comments

Comments
 (0)