Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add size-limit check for runtime API #2894

Merged
merged 1 commit into from
Oct 18, 2024
Merged

Conversation

just-boris
Copy link
Member

Description

Add size-limit check for /internal/plugins export

Related links, issue #, if available: n/a

How has this been tested?

Checked the build logs, there is a size-limit step now

Review checklist

The following items are to be evaluated by the author(s) and the reviewer(s).

Correctness

  • Changes include appropriate documentation updates.
  • Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
  • Changes do not include unsupported browser features, see CONTRIBUTING.md.
  • Changes were manually tested for accessibility, see accessibility guidelines.

Security

Testing

  • Changes are covered with new/existing unit tests?
  • Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

const execa = require('execa');
const { task } = require('../utils/gulp-utils');

module.exports = task('size-limit', () => execa('size-limit', { stdio: 'inherit' }));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They offer a JS API too, but I decided to go with executable option, because only this way we can get readable declarations in package json instead of manual size comparison

Copy link

codecov bot commented Oct 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.19%. Comparing base (a783fec) to head (1f98fee).
Report is 13 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2894      +/-   ##
==========================================
- Coverage   96.20%   96.19%   -0.01%     
==========================================
  Files         761      761              
  Lines       21447    21447              
  Branches     7276     6940     -336     
==========================================
- Hits        20633    20631       -2     
- Misses        761      808      +47     
+ Partials       53        8      -45     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@just-boris just-boris marked this pull request as ready for review October 17, 2024 14:04
@just-boris just-boris requested a review from a team as a code owner October 17, 2024 14:04
@just-boris just-boris requested review from cansuaa and removed request for a team October 17, 2024 14:04
@just-boris just-boris added this pull request to the merge queue Oct 18, 2024
Merged via the queue into main with commit b88a10d Oct 18, 2024
38 checks passed
@just-boris just-boris deleted the runtime-api-size-limit branch October 18, 2024 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants