Skip to content

CJS → ESM: wrapper - package.json updates #342

Closed

Description

@JakobJingleheimer

https://nodejs.github.io/package-examples/05-cjs-esm-migration/migrating-package-json/

  • set "type": "module" (regardless of whether it was set to anything else before)
  • potentially update file extensions in "exports", "imports", "main", and "types" (if they were previously set to CJS-specific file extensions: .cjs → .mjs, .cts → .mts, .d.cts → .d.mts).
  • set "engines"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions