Skip to content

type should be "module" as default #231

Open

Description

@AugustinMauroy
No description provided.

Activity

  1. wesleytodd commented on Nov 12, 2024

    @wesleytodd
    Member
  2. AugustinMauroy commented on Nov 12, 2024

    @AugustinMauroy
    Author

    I'll do it !

  3. wesleytodd commented on Dec 18, 2025

    @wesleytodd
    Member

    The more I am thinking about this, the more I think this is not the right default for this package but should instead be set in a more opinionated wrapper layer like https://github.com/pkgjs/create-pkg

    I say this specifically because the default for Node.js is commonjs. As in, adding a type by default here would mean deviation from the default experience you get when you do npm init -y && cat "console.log('hello') > index.js && node index.js.

    So, while I agree that this is likely the more future proof default to set, I would like to align this package with the platform defaults and allow the more opinionated layers above to provide those opinions. I will leave this open as a discussion point, but I think I might be fairly set on this specific opinion.

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

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions