Skip to content

bundle-size.yml is part of the standard v4 set for every repo; fix the template comment and docs #325

Closed

Description

@Shinrai

Problem

examples/individual-repo-workflows/packaging-docs/bundle-size.yml says:

Only relevant for runtime libraries where bundle size matters (e.g. @cldmv/slothlet). Skip this template for tool repos / meta repos.

That isn't the policy. Every CLDMV v4 repo carries bundle-size.yml. Because of this comment, consumer syncs leave it out, and release-merge.yml's re-evaluation list then gets "cleaned up" by removing 📊 Bundle Size (CLDMV/slothlet-vine#47).

The template's defaults also assume a dist/ build (build_command: "npm run build", dist_paths: "dist/**"). Many consumers publish source with no dist/, and for those the measurement is empty.

Fix

  • Replace the comment with guidance that the workflow is standard for every v4 repo, and explain the two per-repo inputs:
    • build_command: the repo's real build.
    • dist_paths: the files the package publishes (from npm pack --dry-run or package.json files). Give examples for source-shipped packages, e.g. index.mjs,src/** or bin/**,lib/**.
  • List bundle-size.yml in the standard set in the onboarding docs: examples/guides/AGENT-SCAFFOLDING.md, examples/guides/WORKFLOW-SETUP-GUIDE.md, docs/migration/, and any checklist that enumerates the v4 files. Consider moving it out of packaging-docs/ into core-cicd/ so its folder matches its status. If you move it, update every reference to its path.
  • Add a sentence to the release-merge.yml template: keep its workflows: list verbatim, and don't prune entries for workflows the repo lacks. It already says that listing a missing workflow is harmless.
  • Check whether the measure action should warn when dist_paths matches zero files, so a misconfigured dist_paths shows up in the job log instead of producing an empty size table.

Activity

  1. added
    type: documentation
    priority: medium
    status: not started
    on Sep 28, 2026
  2. added theissue type on Sep 28, 2026
  3. added
    status: in progress
    and removed
    status: not started
    on Sep 28, 2026
  4. cldmv-bot commented on Sep 28, 2026

    @cldmv-bot
    Contributor

    Closed in v4.29.3 — resolved by #326.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: mediumstatus: in progresstype: documentation

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions