diff --git a/packages/p2p-media-loader-core/package.json b/packages/p2p-media-loader-core/package.json index d61f0103..715bea1a 100644 --- a/packages/p2p-media-loader-core/package.json +++ b/packages/p2p-media-loader-core/package.json @@ -35,8 +35,17 @@ "exports": "./src/index.ts", "types": "./src/index.ts", "publishConfig": { - "exports": "./lib/index.js", - "types": "./lib/index.d.ts" + "types": "./lib/index.d.ts", + "exports": { + ".": { + "default": "./dist/p2p-media-loader-core.es.js", + "types": "./lib/index.d.ts" + }, + "./lib": { + "default": "./lib/index.js", + "types": "./lib/index.d.ts" + } + } }, "sideEffects": false, "type": "module", diff --git a/packages/p2p-media-loader-hlsjs/package.json b/packages/p2p-media-loader-hlsjs/package.json index 0a0e2f4b..aaa94ed3 100644 --- a/packages/p2p-media-loader-hlsjs/package.json +++ b/packages/p2p-media-loader-hlsjs/package.json @@ -33,8 +33,17 @@ "exports": "./src/index.ts", "types": "./src/index.ts", "publishConfig": { - "exports": "./lib/index.js", - "types": "./lib/index.d.ts" + "types": "./lib/index.d.ts", + "exports": { + ".": { + "default": "./dist/p2p-media-loader-hlsjs.es.js", + "types": "./lib/index.d.ts" + }, + "./lib": { + "default": "./lib/index.js", + "types": "./lib/index.d.ts" + } + } }, "sideEffects": false, "type": "module",