diff --git a/.changeset/forty-apples-hunt.md b/.changeset/forty-apples-hunt.md new file mode 100644 index 0000000000..d38dad5411 --- /dev/null +++ b/.changeset/forty-apples-hunt.md @@ -0,0 +1,5 @@ +--- +"@pnpm/exportable-manifest": patch +--- + +Adds support for `type` and `imports` in publishConfig diff --git a/packages/exportable-manifest/src/index.ts b/packages/exportable-manifest/src/index.ts index bf0bdcef02..82b65cb662 100644 --- a/packages/exportable-manifest/src/index.ts +++ b/packages/exportable-manifest/src/index.ts @@ -8,6 +8,8 @@ import * as R from 'ramda' const PUBLISH_CONFIG_WHITELIST = new Set([ // manifest fields that may make sense to overwrite 'bin', + 'type', + 'imports', // https://github.com/stereobooster/package.json#package-bundlers 'main', 'module',