chore(udg): add local check-only dist drift pre-commit hook #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "spelwork/charming-elion-b0d2f1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A token change requires
just build+ committing the regenerated dist/, butthat was enforced only in CI (udg-dist-check.yml) — easy to forget locally and
hit a red PR. Add a local pre-commit hook (repo: local) that runs
extract.py check --alland blocks the commit if dist/ is stale vs the dtcg +udg sources. Scoped to token-source/dist paths, so template + wp-themes commits
are unaffected. Also sharpen the generator drift message to say
just buildand note the hook in CLAUDE.md dev-setup.