Skip to content

Node.js module changes #6855

Description

@benjamingr

Hey,

Node.js is debating some changes with regards to modules and we'd like your help.

The changes are outlined here: nodejs/TSC#1445 (comment)
The migration path for package authors is outlined here: nodejs/TSC#1445 (comment)

What we'd hopefully like is:

  • For npm publish to warn if the published package.json file does not have a "type" field.
  • For npm init to set "type": "module" in "new" Node.js by default.

This is still all in discussion in Node.js, the above list is just some ideas and this issue is mostly so we can discuss things.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions