Repository navigation
fix(bundle-size): treat bundle-size.yml as standard v4 and warn on empty dist_paths - #326
Merged
Merged
Conversation
…pty dist_paths bundle-size.yml is part of the standard set every v4 repo carries, but its template said to skip it outside runtime libraries, so consumer syncs left it out and then pruned "📊 Bundle Size" from release-merge.yml's workflows list. - Move the template from packaging-docs/ to core-cicd/ so its folder matches its status, and replace the "runtime libs only" comment with guidance for the two per-repo inputs: build_command (the real build) and dist_paths (the published files, from `npm pack --dry-run` or package.json `files`, e.g. `index.mjs,src/**` or `bin/**,lib/**`; only `*` and `**` globs). - List bundle-size.yml in the standard set in AGENT-SCAFFOLDING.md, WORKFLOW-SETUP-GUIDE.md, examples/README.md, README.md and the v3-to-v4 cutover checklist; update the path in v2-to-v3.md. - release-merge.yml template: keep the workflows: list verbatim; don't prune entries for workflows the repo lacks. - bundle-size measure mode: emit a ::warning:: (and a step-summary line) when dist_paths matches zero files; the step still passes. A wildcard-free entry such as `index.mjs` is now measured as a file instead of being skipped because the walk only accepted directories. Fixes #325
Add action.test.mjs for measure mode: runs action.mjs as a subprocess against a fixture tree and checks that exact file paths (`index.mjs`, `lib/util.mjs`), top-level globs (`*.mjs`), `**` trees, the older `*index.mjs` workaround, and zero-match inputs (::warning::, step summary, exit 0) behave as documented. Fails against the previous action, which walked directories only and so dropped every plain file path. Add an `npm test` script that runs this and the existing bot-detection test. The template now notes that no leading-`*` workaround is needed. Refs #325
Contributor
|
Resolves #325 — closed when this ships to the default branch. |
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
👥 Contributors