Skip to content

doc: package main can be directory with an index

This behavior dates back to 2011 but was not documented.

@isaacs made the original change.

I am unsure if package.json in a directory should also be supported here and if ESM behavior should also have this.

Checklist
  • documentation is changed or added
Affected core subsystem(s)

doc

Merge request reports

Loading