Skip to content

feat: Add forceInstall option to NPM-based wizards - #791

Merged
Lms24 merged 5 commits into
masterfrom
lms/feat-add-optional-force-install-arg
Feb 14, 2025
Merged

Lms24 merged 5 commits into
masterfrom
lms/feat-add-optional-force-install-arg

Conversation

@Lms24

@Lms24 Lms24 commented Feb 14, 2025 •

Copy link
Copy Markdown
Member

Adds a CLI argument to make node package managers --force-install a package when calling installPackage. This is of course only optional and defaults to false/undefined.

Added this option to all SDK setup wizards using NPM. Didn't add it to the source maps wizard but we can do so at any time. If reviewers have objections to merging this, I'm also happy to close it in favour of not permitting force installs at all.

closes #788

@github-actions

github-actions Bot commented Feb 14, 2025 •

Copy link
Copy Markdown
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against a03c62b

@codecov

codecov Bot commented Feb 14, 2025 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.

Project coverage is 50.25%. Comparing base (e16056a) to head (a03c62b).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/react-native/react-native-wizard.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #791      +/-   ##
==========================================
+ Coverage   49.47%   50.25%   +0.77%     
==========================================
  Files          52       52              
  Lines        3527     3530       +3     
  Branches      894      896       +2     
==========================================
+ Hits         1745     1774      +29     
+ Misses       1596     1571      -25     
+ Partials      186      185       -1     
Flag Coverage Δ
e2e-tests 85.29% <ø> (ø)
unit-tests 48.85% <66.66%> (+0.81%) ⬆️

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 self-assigned this Feb 14, 2025
@Lms24
Lms24 requested review from andreiborza and lforst February 14, 2025 09:00

@lforst lforst left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I thought about doing this by default but default but an option is a great escape hatch.

@Lms24
Lms24 merged commit a7bdc07 into master Feb 14, 2025
@Lms24
Lms24 deleted the lms/feat-add-optional-force-install-arg branch February 14, 2025 10:20
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.

Installation Issues (NextJS 15)

2 participants