From 967a68d239238ac97cbba7e45fa8b3a387c1ca7a Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Mon, 5 May 2025 09:21:26 +0200 Subject: [PATCH 1/2] doc: add history entries to `--input-type` section --- doc/api/cli.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/doc/api/cli.md b/doc/api/cli.md index 35e835ac7d583a..42a0cd9450b490 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -1457,12 +1457,20 @@ forked processes, or clustered processes. This configures Node.js to interpret `--eval` or `STDIN` input as CommonJS or as an ES module. Valid values are `"commonjs"`, `"module"`, `"module-typescript"` and `"commonjs-typescript"`. The `"-typescript"` values are not available with the flag `--no-experimental-strip-types`. -The default is `"commonjs"`. +The default is no value, or `"commonjs"` if `--no-experimental-detect-module` is passed. If `--input-type` is not provided, Node.js will try to detect the syntax with the following steps: From 68520a4f7b6656bd8e3e88e172f6fba2de65136b Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Mon, 5 May 2025 10:22:18 +0200 Subject: [PATCH 2/2] fixup! doc: add history entries to `--input-type` section --- doc/api/cli.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/api/cli.md b/doc/api/cli.md index 42a0cd9450b490..ac3830518a7de6 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -1457,6 +1457,7 @@ forked processes, or clustered processes.