Skip to content

[Feature request] Support overriding main, exports and other package.json fields with publishConfig #7586

@remorses

Description

@remorses

Currently publishConfig can only override .npmrc fields, other package managers like yarn and pnpm instead let you override exports and main for example.

Adding support for this feature would allow using typescript files in development and javascript dist files when publishing, making package development much easier. isaacs/tshy#65

It would also make npm behaviour consistent with other package managers.

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