Skip to content

fix(docs): derive CLI version badge from root package.json - #11

Merged
dnlbox merged 1 commit into
mainfrom
fix/docs-cli-version
Jun 30, 2026
Merged

fix(docs): derive CLI version badge from root package.json#11
dnlbox merged 1 commit into
mainfrom
fix/docs-cli-version

Conversation

@dnlbox

@dnlbox dnlbox commented Jun 30, 2026

Copy link
Copy Markdown
Owner

Problem

The landing page terminal badge showed CLI v0.8.4, which was hardcoded and no longer matched the actual package version (currently 0.4.0).

Change

  • Add a Vite alias in docs/site/astro.config.mjs that points to the monorepo root package.json.
  • Read version from that package in docs/site/src/pages/index.astro and render it in the badge.
  • Update .gitignore to also cover the AI tooling files (.agents/, BUILD_STATE.md, ROADMAP.md, skills-lock.json) and internal maintainer notes.

Verification

  • pnpm docs:build now renders CLI v0.4.0 in docs/site/dist/index.html.
  • pnpm typecheck && pnpm lint && pnpm test && pnpm build all pass.
  • Pre-commit hook passed on commit.

The landing page terminal badge hardcoded v0.8.4, which drifted from the
actual published version (0.4.0). Add a Vite alias to the monorepo root
package.json and read the version from there so the badge updates
automatically on release.
@dnlbox
dnlbox merged commit 0844ab3 into main Jun 30, 2026
7 checks passed
@dnlbox
dnlbox deleted the fix/docs-cli-version branch June 30, 2026 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant