Skip to content

Commit bd55d40

Browse files
CopilotTylerJDev
andcommitted
fix: restore size.yml workflow and update size-limit config to ESM entrypoint
Co-authored-by: TylerJDev <[email protected]>
1 parent 5ec1e00 commit bd55d40

2 files changed

Lines changed: 19 additions & 7 deletions

File tree

.github/workflows/size.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Size
2+
on: [pull_request]
3+
jobs:
4+
size:
5+
name: Size
6+
runs-on: ubuntu-latest
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
env:
11+
CI_JOB_NUMBER: 1
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: andresz1/size-limit-action@v1
15+
with:
16+
github_token: ${{ secrets.GITHUB_TOKEN }}
17+
build_script: build

package.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,10 @@
102102
"prettier": "@github/prettier-config",
103103
"size-limit": [
104104
{
105-
"path": "packages/react/dist/browser.esm.js",
106-
"webpack": false,
107-
"running": false
108-
},
109-
{
110-
"path": "packages/react/dist/browser.umd.js",
105+
"path": "packages/react/dist/index.js",
111106
"webpack": false,
112107
"running": false
113108
}
114109
],
115110
"packageManager": "[email protected]+sha512.4085a763162e0e3acd19a4e9d23ad3aa0978e501ccf947dd7233c12a689ae0bb0190763c4ef12366990056b34eec438903ffed38fde4fbd722a17c2a7407ee92"
116-
}
111+
}

0 commit comments

Comments
 (0)