nodejs.org icon indicating copy to clipboard operation
nodejs.org copied to clipboard

Outdated info on Node.js awareness of package.json fields

Open ekuusela opened this issue 4 years ago • 0 comments

  • URL: https://nodejs.org/en/knowledge/getting-started/npm/what-is-the-file-package-json/
  • Browser version: any
  • Operating system: any

The "What is the file package.json?" article says that Node.js itself is only aware of two fields in the package.json: name and version. But this is outdated and also not very clear how exactly those fields are relevant.

The info here seems to be up-to-date and mentions also type, exports and imports as used by the Node.js runtime: https://nodejs.org/api/packages.html#packages_node_js_package_json_field_definitions

ekuusela avatar May 10 '21 12:05 ekuusela