Repository navigation
build(zip): 源码包排除私有文档仓库 notes/ 与链接进来的 CONTEXT.md —— 文档移到私有仓库后 wxt 打源码包不看 .gitignore,会把它们一起打进去 - #1171
Merged
Merged
Conversation
…包不看 .gitignore,会把它们一起打进去
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.
问题
为 2.1.243 打包时发现,
pnpm zip:firefox生成的源码包(发到 Releases、给 AMO 审核用)里带上了私有文档仓库:notes/整个目录(术语表、ADR、测试体系说明、上架材料等约 100 个文件)和根目录的CONTEXT.md。根因
#1109 把内部文档移到私有仓库,克隆在
notes/,并在原位置建了指向它的本地链接;这些路径只加进了.gitignore。wxt 打源码包不看.gitignore,只按zip.excludeSources排除,原来的列表只有docs/**、store/**、design/**,所以notes/与CONTEXT.md被打了进去。2.1.218 发版时文档还在公开仓库,那次的源码包没有这个问题。修复
wxt.config.ts:excludeSources加上notes/**与CONTEXT.md(其余链接都在docs/、store/下,已被排除)。验证
src/、entrypoints/),少了已移走的CONTEXT.md;不含notes/。