chore: 公開アーカイブから test と tool を除外する - #32
Merged
Merged
Conversation
.pubignore が無いため、test(380K)とリリースツール一式が pub.dev の アーカイブに含まれていた。利用者が使わないため除外する。圧縮後 94 KB から 43 KB になる。 third_party/ は lib/ に埋め込んだ Unicode 絵文字正規表現のライセンス表示を 含むため除外しない。 .pubignore を置くと pub は同じディレクトリの .gitignore を参照しなくなる。 ビルド生成物や作業ディレクトリが混入しないよう、.gitignore と同等の内容を .pubignore にも明記している。dry-run で公開物一覧を比較し、除外されたのが test と tool だけで、新たに混入したものが無いことを確認済み。 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
.pubignoreが無いため、test/(380K)とリリースツール一式が pub.dev のアーカイブに含まれていました。利用者が使わないため除外します。圧縮後 94 KB → 43 KB
保持するもの
third_party/emoji-test-regex-pattern/LICENSEは、lib/src/parser/inline/generated/unicode_emoji_regex.dartに埋め込んだ Unicode 絵文字正規表現のライセンス表示です。除外するとライセンス上の問題になるため残します。.gitignoreとの関係.pubignoreを置くと pub は同じディレクトリの.gitignoreを参照しなくなります。ビルド生成物(.dart_tool/build/coverage/)や.fvm/が公開物に混入しないよう、.gitignoreと同等の内容を.pubignoreにも明記しています。検証
dart pub publish --dry-runの公開物一覧を適用前後で比較し、次を確認済みです。test/とtool/のみ.dart_toolやbuildは出現しない)third_party/emoji-test-regex-pattern/LICENSEは引き続き含まれるなお進行中のリリース PR #31(2.0.1)には含まれません。次回リリースから反映されます。