Skip to content

Commit c9112c1

Browse files
committed
Use a packaging config that actually runs in Next
1 parent c627e92 commit c9112c1

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "type": "commonjs" }

packages/action-listener-middleware/package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@
88
},
99
"license": "MIT",
1010
"source": "src/index.ts",
11-
"exports": "./dist/index.modern.js",
12-
"main": "./dist/index.cjs",
13-
"module": "./dist/index.module.js",
14-
"unpkg": "./dist/index.umd.js",
11+
"module": "./dist/module/index.js",
12+
"main": "./dist/cjs/index.js",
1513
"types": "./dist/index.d.ts",
1614
"scripts": {
17-
"build": "rimraf dist && microbundle",
15+
"build": "rimraf dist && yarn build:esm && yarn build:module && yarn build:cjs",
16+
"build:esm": "microbundle -o ./dist/esm/index.js -f modern",
17+
"build:module": "microbundle -o ./dist/module/index.js -f esm --generate-types false",
18+
"build:cjs": "microbundle -o ./dist/cjs/index.js -f cjs --generate-types false && cp ./cjs.json ./dist/cjs/package.json",
1819
"dev": "microbundle watch",
1920
"prepublishOnly": "yarn build",
2021
"test": "jest --runInBand"

0 commit comments

Comments
 (0)