Skip to content

Fix broken pnpm support for cf3 - #5467

Merged
taeold merged 7 commits into
masterfrom
cf3-pnpm
Jan 30, 2023
Merged

taeold merged 7 commits into
masterfrom
cf3-pnpm

Conversation

@taeold

@taeold taeold commented Jan 27, 2023 •

Copy link
Copy Markdown
Contributor

Due to the way pnpm resolves packages with peer dependencies, location of the firebase functions sdk package isn't where the CLI expects it to be.

We make the logic for finding the binary associated Firebase Functions SDK more robust by checking list of possible paths where it might exist. We also add integration test for pnpm in the functions discovery test.

Fixes #5448

@taeold

taeold commented Jan 27, 2023

Copy link
Copy Markdown
Contributor Author

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@codecov-commenter

codecov-commenter commented Jan 27, 2023 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 5.00000% with 19 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.28%. Comparing base (5811aea) to head (b70f8a3).

Files with missing lines Patch % Lines
src/deploy/functions/runtimes/node/index.ts 5.00% 19 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5467      +/-   ##
==========================================
- Coverage   56.28%   56.28%   -0.01%     
==========================================
  Files         315      315              
  Lines       21348    21355       +7     
  Branches     4354     4355       +1     
==========================================
+ Hits        12016    12019       +3     
- Misses       8291     8295       +4     
  Partials     1041     1041              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@taeold
taeold merged commit accea7a into master Jan 30, 2023
@taeold
taeold deleted the cf3-pnpm branch January 30, 2023 19:05
taeold added a commit that referenced this pull request Jan 31, 2023
Due to the way pnpm resolves packages with peer dependencies, location of the firebase functions sdk package isn't where the CLI expects it to be.

We make the logic for finding the binary associated Firebase Functions SDK more robust by checking list of possible paths where it might exist. We also add integration test for pnpm in the functions discovery test.

Fixes #5448
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.

Version 11.21.0 breaks firebase deploy functions compatibility with pnpm

3 participants