File tree Expand file tree Collapse file tree 4 files changed +42
-1613
lines changed Expand file tree Collapse file tree 4 files changed +42
-1613
lines changed Original file line number Diff line number Diff line change 3333 - uses : bgd-labs/github-workflows/.github/actions/setup-node@main
3434
3535 - name : Package size report
36- uses : andresz1 /size-limit-action@94bc357df29c36c8f8d50ea497c3e225c3c95d1d # pin@v1
36+ uses : bgd-labs /size-limit-action@ae1e75a19db162bbc72bc446f60c4dfd2f27583f # pin@v1
3737 with :
3838 github_token : ${{ secrets.GITHUB_TOKEN }}
39+ min_delta : 2
3940
4041 release-node-alpha :
4142 if : github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]'
Original file line number Diff line number Diff line change 1+ import type { SizeLimitConfig } from 'size-limit' ;
2+ import { readdirSync } from 'fs' ;
3+
4+ const files = readdirSync ( 'dist' ) ;
5+
6+ module . exports = files
7+ . filter ( ( file ) => file . endsWith ( '.js' ) )
8+ . map ( ( file ) => ( { path : `dist/${ file } ` } ) ) satisfies SizeLimitConfig ;
You can’t perform that action at this time.
0 commit comments