From c96e96c7659a623175a9d49c1dc7436d026e2525 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Wed, 7 May 2025 09:30:48 +0200 Subject: [PATCH] doc: add history entries to `--input-type` section PR-URL: https://github.com/nodejs/node/pull/58175 Reviewed-By: Luigi Pinca Reviewed-By: James M Snell --- doc/api/cli.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/doc/api/cli.md b/doc/api/cli.md index 8810d29d3f2..97674a79977 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -1457,12 +1457,21 @@ 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: