diff --git a/.github/workflows/size.yml b/.github/workflows/size.yml index 8e180cb..d8a70b1 100644 --- a/.github/workflows/size.yml +++ b/.github/workflows/size.yml @@ -1,13 +1,22 @@ -name: size +name: Size Limit + on: [pull_request] + jobs: size: runs-on: ubuntu-latest env: CI_JOB_NUMBER: 1 + steps: - - uses: actions/checkout@v4 - - uses: andresz1/size-limit-action@v1 + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + persist-credentials: false + + - name: Size Limit + uses: andresz1/size-limit-action@v1 with: github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index bfe9963..cdc673c 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,6 @@ ], "license": "MIT", "main": "dist/index.js", - "module": "dist/crestron-ch5-helper.esm.js", "typings": "dist/index.d.ts", "type": "module", "repository": { @@ -45,11 +44,11 @@ }, "size-limit": [ { - "path": "dist/crestron-ch5-helper.cjs.production.min.js", + "path": "dist/index.cjs", "limit": "10 KB" }, { - "path": "dist/crestron-ch5-helper.esm.js", + "path": "dist/index.js", "limit": "10 KB" } ],