@@ -33,9 +33,9 @@ initial input, or when referenced by `import` statements within ES module code:
33
33
34
34
* Files ending in ` .mjs ` .
35
35
36
- * Files ending in ` .js ` , or extensionless files, when the nearest parent
37
- ` package.json ` file contains a top-level field ` "type" ` with a value of
38
- ` "module" ` .
36
+ * Files ending in ` .js ` , or extensionless files when run as main entry points on
37
+ the command line, when the nearest parent ` package.json ` file contains a
38
+ top-level field ` "type" ` with a value of ` "module" ` .
39
39
40
40
* Strings passed in as an argument to ` --eval ` or ` --print ` , or piped to
41
41
` node ` via ` STDIN ` , with the flag ` --input-type=module ` .
@@ -50,9 +50,9 @@ or when referenced by `import` statements within ES module code:
50
50
51
51
* Files ending in ` .cjs ` .
52
52
53
- * Files ending in ` .js ` , or extensionless files, when the nearest parent
54
- ` package.json ` file contains a top-level field ` "type" ` with a value of
55
- ` "commonjs" ` .
53
+ * Files ending in ` .js ` , or extensionless files when run as main entry points on
54
+ the command line, when the nearest parent ` package.json ` file contains a
55
+ top-level field ` "type" ` with a value of ` "commonjs" ` .
56
56
57
57
* Strings passed in as an argument to ` --eval ` or ` --print ` , or piped to
58
58
` node ` via ` STDIN ` , with the flag ` --input-type=commonjs ` .
0 commit comments