Files
node/lib
Joyee Cheung b7284ed099 module: do not warn for typeless package.json when there isn't one
It was intended that warnings should only be emitted for an
existing package.json without a type. This fixes a confusing
warning telling users to update /package.json when there are
no package.json on the lookup path at all, like this:

[MODULE_TYPELESS_PACKAGE_JSON] Warning: ... parsed as an ES module
because module syntax was detected; to avoid the performance penalty
of syntax detection, add "type": "module" to /package.json

Drive-by: update the warning message to be clear about
reparsing and make it clear what's actionable.

PR-URL: https://github.com/nodejs/node/pull/54045
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2024-09-12 11:06:35 +02:00
..
…
…
…
2024-08-30 15:52:12 -03:00
…
2024-01-12 16:09:48 +00:00
2024-07-16 12:01:14 +02:00
2023-11-11 16:25:08 +00:00
2024-08-19 11:34:11 -03:00
2024-02-02 15:25:34 +01:00
…
2024-06-01 10:55:09 +02:00
2024-06-20 14:40:37 +02:00
2024-07-16 12:01:13 +02:00
2024-07-16 12:01:09 +02:00
…
2024-08-30 15:52:14 -03:00