Skip to content

Commit a5825c8

Browse files
authored
document FORCE_COLOR (#1020)
1 parent 27256dc commit a5825c8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pages/docs/manual/v12.0.0/build-configuration.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,12 +234,12 @@ To enable genType, set `"gentypeconfig"` at top level in the project's `rescript
234234

235235
We heavily disrecommend the usage of environment variables, but for certain cases, they're justified.
236236

237-
### Error Output Coloring: `NINJA_ANSI_FORCED`
237+
### Error Output Coloring: `FORCE_COLOR`
238238

239239
This is mostly for other programmatic usage of `rescript` where outputting colors is not desired.
240240

241-
When `NINJA_ANSI_FORCED` is set to `1`: `rescript` produces color.
242-
When `NINJA_ANSI_FORCED` is set to `0`: `rescript` doesn't produce color.
243-
When `NINJA_ANSI_FORCED` is not set: `rescript` might or might not produce color, depending on a smart detection of where it's outputted.
241+
When `FORCE_COLOR` is set to `1`: `rescript` produces color.
242+
When `FORCE_COLOR` is set to `0`: `rescript` doesn't produce color.
243+
When `FORCE_COLOR` is not set: `rescript` might or might not produce color, depending on a smart detection of where it's outputted.
244244

245245
> Note that the underlying compiler will always be passed `-color always`. See more details in [this issue](https://github.com/rescript-lang/rescript-compiler/issues/2984#issuecomment-410669163).

0 commit comments

Comments
 (0)