Skip to content

feat: allow zipping hidden files by listing them explicitly in includeSources - #902

Merged
aklinker1 merged 1 commit into
wxt-dev:mainfrom
hikiko4ern:include-zip-dotfiles
Aug 8, 2024
Merged

aklinker1 merged 1 commit into
wxt-dev:mainfrom
hikiko4ern:include-zip-dotfiles

Conversation

@hikiko4ern

Copy link
Copy Markdown
Contributor

I omitted dot: true and didn't touch the default excludeSources (mentioned in #738 (comment)) to avoid filtering all files inside hidden directories (including those in .git). For example, in my repo:

  • dot: true filters 4657 files
  • only 1028 files are filtered with this PR

In theory, there should be no difference for the end user - both approaches will not include files inside the hidden directory if only that directory is specified in includeSources (i.e. to include all files inside .hidden-dir, you should specify .hidden-dir/**, not .hidden-dir). Perhaps this specific aspect should be mentioned somehow in the includeSources JSDoc?

@netlify

netlify Bot commented Aug 4, 2024 •

Copy link
Copy Markdown

✅ Deploy Preview for creative-fairy-df92c4 ready!

Name Link
🔨 Latest commit 22f3d7b
🔍 Latest deploy log https://app.netlify.com/sites/creative-fairy-df92c4/deploys/66b0045dfa1ce90008749a41
😎 Deploy Preview https://deploy-preview-902--creative-fairy-df92c4.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@aklinker1 aklinker1 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.

Well that was an easy fix lol. Thanks for updating the tests too!

@codecov

codecov Bot commented Aug 7, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.41%. Comparing base (4c5504d) to head (22f3d7b).
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #902      +/-   ##
==========================================
+ Coverage   82.30%   82.41%   +0.10%     
==========================================
  Files         125      125              
  Lines        6538     6538              
  Branches     1093     1101       +8     
==========================================
+ Hits         5381     5388       +7     
+ Misses       1143     1136       -7     
  Partials       14       14              

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

@aklinker1

Copy link
Copy Markdown
Member

Released in v0.19.5

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