Skip to content

Commit

Permalink
chore: Add size limit
Browse files Browse the repository at this point in the history
  • Loading branch information
neet committed Nov 1, 2023
1 parent 4e69eea commit 14d5387
Show file tree
Hide file tree
Showing 3 changed files with 264 additions and 15 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/size-limit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# https://github.com/andresz1/size-limit-action
name: "CI (size-limit)"
on:
pull_request:
branches:
- main
jobs:
size:
runs-on: ubuntu-latest
env:
CI_JOB_NUMBER: 1
steps:
- uses: actions/checkout@v3
- uses: andresz1/size-limit-action@v1.7.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"@rollup/plugin-typescript": "^11.1.5",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@size-limit/preset-small-lib": "^10.0.1",
"@types/jest": "^29.5.6",
"@types/node": "^20.8.9",
"@types/proper-lockfile": "^4.1.3",
Expand All @@ -67,6 +68,7 @@
"rollup-plugin-dts": "^6.1.0",
"rollup-plugin-node-globals": "^1.4.0",
"semantic-release": "^22.0.5",
"size-limit": "^10.0.1",
"ts-jest": "^29.1.1",
"tslib": "^2.6.2",
"typedoc": "^0.25.2",
Expand All @@ -93,5 +95,11 @@
"bugs": {
"url": "https://github.com/neet/masto.js/issues"
},
"homepage": "https://github.com/neet/masto.js#readme"
"homepage": "https://github.com/neet/masto.js#readme",
"size-limit": [
{
"limit": "7.5 kB",
"path": "./dist/index.js"
}
]
}
Loading

0 comments on commit 14d5387

Please sign in to comment.