Skip to content

chore(infra): centralize workspace source aliases and add CI-checked repo map - #94

Merged
alowpoly merged 1 commit into
mainfrom
repo-map-and-aliases
Dec 3, 2026
Merged

alowpoly merged 1 commit into
mainfrom
repo-map-and-aliases

Conversation

@alowpoly

@alowpoly alowpoly commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Shared workspace source aliases (packages/workspace-aliases.mjs): Consolidated all 12 duplicated @layoutit/polycss* source alias maps (packages/vitest.base.mjs + all 5 package Vitest configs, bench/build.mjs, website/astro.config.mjs, all 3 website/scripts/*.mjs, and validated against website/tsconfig.json). Subpaths are ordered before root package entries and automatically validated against every publishable package's package.json#exports.
  • Auto-generated, CI-enforced repository map (.github/architecture/repo-map.md): Added pnpm map / pnpm check:map (.github/scripts/generate-repo-map.mjs + .github/scripts/generate-repo-map.test.mjs), wired into pnpm check:guards and linked from the top of AGENTS.md. Covers:
    1. All 8 workspace packages (exports, workspace deps, source files, lines, test files).
    2. Canonical workspace aliases and all 12 consumers.
    3. Top 12 import hubs (fanIn) and 12 largest production files across tracked code.
    4. Core render/control pipelines with verified file:symbol anchors.
    5. All 6 mutable runtime state containers (SceneContext, MeshEntry, ShadowSvgState, CameraHandle, React runtimeSceneSlot, Vue sceneCtx) and their invariants, with verified file:symbol anchors.
    6. Verification gate coverage matrix (exact command, what each gate proves, and explicit blind spots).

Verification

  • pnpm verify — passed (check:guards including check:map + generate-repo-map.test.mjs, all package unit tests, builds, typecheck, IR conformance, 7 packs, bench build, 4 examples).
  • ASTRO_TELEMETRY_DISABLED=1 pnpm build:website — passed (23 static pages built via createViteWorkspaceSourceAliases()).

@alowpoly
alowpoly merged commit 7f9b646 into main Dec 3, 2026
6 checks passed
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