Repository navigation
feat: Download and override private packages for Firefox code review - #507
Merged
Merged
Conversation
✅ Deploy Preview for creative-fairy-df92c4 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
3 of 4 tasks
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #507 +/- ##
==========================================
+ Coverage 85.92% 86.37% +0.44%
==========================================
Files 106 111 +5
Lines 8429 8775 +346
Branches 817 862 +45
==========================================
+ Hits 7243 7579 +336
- Misses 1173 1182 +9
- Partials 13 14 +1 ☔ View full report in Codecov by Sentry. |
aklinker1
marked this pull request as ready for review
March 1, 2024 14:44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
List package names in your
wxt.config.ts, and WXT will download them and include them in the sources ZIP when runningwxt zip -b firefox.wxt/demo/wxt.config.ts
Lines 18 to 20 in d4867c1
For this to work, regardless of the project's package manager in use, NPM must be installed and .npmrc must include registry auth tokens.
npm pack <package-name>is always used to download the tarball, even if you use bun/pnpm/yarn.Will also add overrides/resolutions to your
package.json(in the ZIP, not the one on disk) so the downloaded modules are used instead of the local ones. Also supports if multiple versions of a dependency need downloaded.This replaces #223, and closes #185.
Todo
local_modulesto.wxt/local_modules