Skip to content

fix: use DEFAULT_AMT const for fallbacks and fix README sync#23

Merged
dogmar merged 3 commits intomainfrom
fix/default-amt-fallback
Apr 11, 2026
Merged

fix: use DEFAULT_AMT const for fallbacks and fix README sync#23
dogmar merged 3 commits intomainfrom
fix/default-amt-fallback

Conversation

@dogmar
Copy link
Copy Markdown
Owner

@dogmar dogmar commented Apr 11, 2026

Summary

  • Replaces the hardcoded 2 in the tw-plugin's CSS var fallback with the DEFAULT_AMT constant from variants.ts
  • Fixes scripts/sync-readme.sh marker mismatch (package/dist/... vs dist/...) that caused syncing to silently no-op
  • Updates README with correct code blocks (all fallbacks now show 2 instead of stale 1.5)
  • Moves the sync-readme CI workflow from post-merge to a PR check that auto-commits fixes or fails if unable to push

Test plan

  • Verify existing tests still pass
  • Confirm vp run sync-readme produces no diff on a clean build
  • Open a PR that changes generated output and confirm CI auto-commits the README update

🤖 Generated with Claude Code

dogmar and others added 3 commits April 10, 2026 17:45
The hardcoded `2` in the CSS var fallback should reference the
DEFAULT_AMT constant to stay consistent if the default ever changes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The sync script used `package/dist/...` as marker names but README had
`dist/...` markers, so syncing was silently a no-op. Fix by accepting
an optional third arg for the actual file path, keeping the marker
name matching what's in README.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Moves the sync-readme workflow from push-to-main to pull_request.
It auto-commits the synced README to the PR branch, or fails CI if
it cannot push (e.g., from a fork).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@dogmar dogmar changed the title fix: use DEFAULT_AMT const for --squircle-amt fallback fix: use DEFAULT_AMT const for fallbacks and fix README sync Apr 11, 2026
@dogmar dogmar merged commit fd48f49 into main Apr 11, 2026
4 checks passed
@dogmar dogmar deleted the fix/default-amt-fallback branch April 11, 2026 00:57
@github-actions
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.7.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant