Repository navigation
fix(bundle-size): normalize ./ dist_paths and prune the measure walk - #328
Merged
Merged
Conversation
Three dist_paths problems in the measure action, plus the scaffolding checklist gap, all found while fixing #325: - A `./`-prefixed glob (`./dist/**`) never matched: walked paths come back as `dist/x` but the regex was built from `./dist/**`. A `./` single file did match but was recorded as `./index.mjs`, so compare treated it as a different file from `index.mjs`. Leading `./` is now stripped from every pattern, so all entries use one canonical form. - A wildcard mid-segment (`lib/ut*.mjs`) walked the nonexistent root `lib/ut` and matched nothing. The root is now the whole segments before the first wildcard. - A root-level glob walked the entire tree, node_modules and .git included. The walk now skips node_modules/.git and only enters directories some pattern can still match beneath (so `*.mjs` reads the root only, and never hits an unreadable subdirectory). - Overlapping patterns (`index.mjs,*.mjs`) counted a file once per matching root; files are now measured once. Tests added for each case; existing cases unchanged. The "Always (v4 release flow)" table in AGENT-SCAFFOLDING.md now lists feature-pr.yml and release-merge.yml, the two release-flow-v4 templates it omitted. Fixes #327
Contributor
Shinrai
previously approved these changes
Sep 28, 2026
cldmv-bot
Bot
dismissed
Shinrai’s stale review
September 28, 2026 13:05
The merge-base changed after approval.
Shinrai
previously approved these changes
Sep 28, 2026
cldmv-bot
Bot
dismissed
Shinrai’s stale review
September 28, 2026 13:05
The merge-base changed after approval.
Shinrai
approved these changes
Sep 28, 2026
Shinrai
previously approved these changes
Sep 28, 2026
cldmv-bot
Bot
dismissed
Shinrai’s stale review
September 28, 2026 13:12
The merge-base changed after approval.
Shinrai
approved these changes
Sep 28, 2026
cldmv-bot Bot
added a commit
that referenced
this pull request
Sep 28, 2026
…mpty… ## 🚀 What's Changed ### 💥 Breaking Changes _No breaking changes_ ### ✨ Features _No new features_ ### 🐛 Bug Fixes - #331 - fix(paths-gate): fall back to full CI when the diff can't be computed (63d87e6) - #328 - fix(bundle-size): normalize ./ dist_paths and prune the measure walk (5e6e1c1) - #326 - fix(bundle-size): treat bundle-size.yml as standard v4 and warn on empty dist_paths (085f941) ### 📦 Dependencies _No dependency updates_ ### 🔧 Other Changes - #326 - test(bundle-size): cover exact-path, glob and zero-match dist_paths (4db8fec) <details> <summary>👥 Contributors</summary> - @Shinrai </details> <!-- co-authors --> Co-authored-by: Shinrai <[email protected]>
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.
🚀 What's Changed
💥 Breaking Changes
No breaking changes
✨ Features
No new features
🐛 Bug Fixes
📦 Dependencies
No dependency updates
🔧 Other Changes
No other changes
👥 Contributors