Skip to content

pnpm init should add "type": "module" to package.json #9416

@olehmisar

Description

@olehmisar

Contribution

Describe the user story

ES modules are becoming the default in the ecosystem and should be the default when initialising a new project via pnpm init.

Describe the solution you'd like

Running pnpm init should add "type": "module" to package.json. This is a breaking change.

Alternatively, there should be a flag like pnpm init --module (or pnpm init -m for short) to avoid breaking changes. Then make it the default behavior in pnpm 11.

Describe the drawbacks of your solution

nope

Describe alternatives you've considered

nope

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions