Skip to content

Commit 9aefde0

Browse files
committed
ci(github): update bundlesize config
1 parent 54f2344 commit 9aefde0

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.github/workflows/bundlesize.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
run: yarn install
1515

1616
- name: Build ReactTooltip component package
17-
run: yarn build
17+
run: yarn build-rollup
1818

1919
- name: Bundlesize
2020
run: yarn run bundlesize

bundlesize.config.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"files": [
33
{
4-
"path": "./dist/react-tooltip.cjs.min.js",
4+
"path": "./dist/react-tooltip.min.cjs",
55
"maxSize": "10 kB"
66
},
77
{
8-
"path": "./dist/react-tooltip.esm.min.js",
8+
"path": "./dist/react-tooltip.min.mjs",
99
"maxSize": "10 kB"
1010
},
1111
{
12-
"path": "./dist/react-tooltip.iife.min.js",
12+
"path": "./dist/react-tooltip.umd.min.js",
1313
"maxSize": "10 kB"
1414
}
1515
]

package.json

-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
"postbuild": "npm run types && npm run bundlesize",
1919
"prepublishOnly": "npm run build-rollup"
2020
},
21-
"main": "dist/react-tooltip.cjs.min.js",
22-
"module": "dist/react-tooltip.esm.min.js",
2321
"types": "dist/react-tooltip.d.ts",
2422
"license": "MIT",
2523
"private": false,

0 commit comments

Comments
 (0)