Skip to content

Commit 48d6bea

Browse files
aduh95marco-ippolito
authored andcommitted
doc: add history entries to --input-type section
PR-URL: #58175 Backport-PR-URL: #57298 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> PR-URL: #56350 Fixes: nodejs/typescript#17
1 parent 43a9351 commit 48d6bea

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

doc/api/cli.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1482,12 +1482,21 @@ forked processes, or clustered processes.
14821482

14831483
<!-- YAML
14841484
added: v12.0.0
1485+
changes:
1486+
- version: REPLACEME
1487+
pr-url: https://github.com/nodejs/node/pull/56350
1488+
description: Add support for `-typescript` values.
1489+
- version:
1490+
- v22.7.0
1491+
- v20.19.0
1492+
pr-url: https://github.com/nodejs/node/pull/53619
1493+
description: ESM syntax detection is enabled by default.
14851494
-->
14861495

14871496
This configures Node.js to interpret `--eval` or `STDIN` input as CommonJS or
14881497
as an ES module. Valid values are `"commonjs"`, `"module"`, `"module-typescript"` and `"commonjs-typescript"`.
14891498
The `"-typescript"` values are not available with the flag `--no-experimental-strip-types`.
1490-
The default is `"commonjs"`.
1499+
The default is no value, or `"commonjs"` if `--no-experimental-detect-module` is passed.
14911500

14921501
If `--input-type` is not provided,
14931502
Node.js will try to detect the syntax with the following steps:

0 commit comments

Comments
 (0)