cli icon indicating copy to clipboard operation
cli copied to clipboard

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

Open remorses opened this issue 1 year ago • 0 comments

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. https://github.com/isaacs/tshy/issues/65

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

remorses avatar Jun 05 '24 09:06 remorses