Skip to content

Commit

Permalink
size-limit should measure production artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
etrepum committed Jan 14, 2025
1 parent 10b96c9 commit fd20703
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/size-limit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,4 @@ jobs:
- uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
build_script: build-prod
7 changes: 2 additions & 5 deletions .size-limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,9 @@ const path = require('node:path');
* Looks like:
*
* {
* lexical: 'packages/lexical/dist/index.js',
* '@lexical/rich-text': 'packages/lexical-rich-text/dist/index.js',
* lexical: 'packages/lexical/dist/Lexical.js',
* '@lexical/rich-text': 'packages/lexical-rich-text/dist/LexicalRichText.js',
* }
*
* Currently this alias map points at the cjs version of the build product,
* as that is what was measured previously in #3600.
*/
const {packagesManager} = require('./scripts/shared/packagesManager');
const getAliasType = (type) =>
Expand Down

0 comments on commit fd20703

Please sign in to comment.