diff --git a/src/messaging/js/composeui-messaging-client/package.json b/src/messaging/js/composeui-messaging-client/package.json index 9ac9c4ef8..51981c14c 100644 --- a/src/messaging/js/composeui-messaging-client/package.json +++ b/src/messaging/js/composeui-messaging-client/package.json @@ -5,11 +5,11 @@ "description": "JavaScript client for ComposeUI's Message Router", "type": "module", "files": [ - "dist/esm/**/*" + "dist/**/*" ], - "main": "dist/esm/index.js", - "module": "dist/esm/index.js", - "types": "dist/esm/index.d.ts", + "main": "dist/index.js", + "module": "dist/index.js", + "types": "dist/index.d.ts", "scripts": { "build": "npm run build:clean && npm run build:rollup", "build:clean": "rimraf dist", diff --git a/src/messaging/js/composeui-messaging-client/rollup.config.js b/src/messaging/js/composeui-messaging-client/rollup.config.js index 037bc6b8c..41ed64169 100644 --- a/src/messaging/js/composeui-messaging-client/rollup.config.js +++ b/src/messaging/js/composeui-messaging-client/rollup.config.js @@ -32,7 +32,7 @@ const config = [ input: inputFileName, output: [ { - file: "dist/esm/index.js", + file: "dist/index.js", format: "es", sourcemap: "inline", banner: banner,