Warn about --type
with shebang by jkrems · Pull Request #37 · nodejs/ecmascript-modules (original) (raw)
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only if they're invoking node on an extensionless ESM file - if the file has an extension, or if it's CJS, then node
would still be preferred.
Since package.json bins can have extensions, this really only affects executable one-off ESM scripts, which won't be the majority (but are still an important use case)