Skip to content

fix: Remove bulk from npm - #825

Merged
BYK merged 4 commits into
masterfrom
byk/fix/remove-moar-cruft-npm
Feb 25, 2025
Merged

BYK merged 4 commits into
masterfrom
byk/fix/remove-moar-cruft-npm

Conversation

@BYK

@BYK BYK commented Feb 25, 2025

Copy link
Copy Markdown
Member

This patch removes further bulk from the npm package which became 183 MB due to .node-cache getting bundled in. This is a follow up to #820.

This patch removes further bulk from the npm package which became 183 MB due to `.node-cache` getting bundled in. This is a follow up to #820.
@BYK
BYK requested a review from Lms24 February 25, 2025 14:25
@BYK
BYK enabled auto-merge (squash) February 25, 2025 14:25
@codecov

codecov Bot commented Feb 25, 2025 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.55%. Comparing base (f5591eb) to head (aedaff0).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff            @@
##           master     #825    +/-   ##
========================================
  Coverage   49.55%   49.55%            
========================================
  Files          52       52            
  Lines        3519     3519            
  Branches      826      826            
========================================
  Hits         1744     1744            
+ Misses       1774     1639   -135     
- Partials        1      136   +135     
Flag Coverage Δ
e2e-tests 80.85% <ø> (ø)
unit-tests 48.25% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@Lms24 Lms24 left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

wdyt about using files in the package.json instead of .npmignore? this would prevent stuff like this in the future

@BYK

BYK commented Feb 25, 2025

Copy link
Copy Markdown
Member Author

@Lms24 would love to do that. Let me try.

@BYK
BYK requested a review from Lms24 February 25, 2025 14:33
@BYK

BYK commented Feb 25, 2025

Copy link
Copy Markdown
Member Author

Did the following to test locally:

yarn pack
cd ../
npm install sentry-wizard/sentry-wizard-v4.0.0.tgz
npx @sentry/wizard

npx didn't prompt for installation and the wizard ran without issues. Did not check anything further down, including type imports etc.

@Lms24 Lms24 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just had one more question (see comment).

I think this will exclude a lot of files we previously published (see 3.4.0 as an example) but all of them are source files (+ not referenced from package.json) or stuff like the CHANGELOG which doesn't need to be included.

I also ran it locally and things seemed to work. Happy to 👍 once the comment is addressed

Comment thread package.json Outdated
@Lms24

Lms24 commented Feb 25, 2025

Copy link
Copy Markdown
Member

I also checked by running npm pack (which is almost the same as yarn pack which we use in CI` and it seems to include everything in the tarball 👍

Co-authored-by: Lukas Stracke <lukas.stracke@sentry.io>
Comment thread package.json Outdated
@BYK
BYK requested a review from Lms24 February 25, 2025 15:36
@BYK
BYK merged commit 6421c61 into master Feb 25, 2025
@BYK
BYK deleted the byk/fix/remove-moar-cruft-npm branch February 25, 2025 16:33
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