Skip to content

refactor(glaze): split glaze.ts into focused modules #56

Merged
tenphi merged 2 commits into
mainfrom
chore-refactoring
May 14, 2026
Merged

refactor(glaze): split glaze.ts into focused modules #56
tenphi merged 2 commits into
mainfrom
chore-refactoring

Conversation

@tenphi
Copy link
Copy Markdown
Owner

@tenphi tenphi commented May 14, 2026

No description provided.

tenphi and others added 2 commits May 14, 2026 16:43
Split the 2636-line src/glaze.ts into flat per-concern modules (config,
hc-pair, shadow, warnings, scheme-mapping, validation, resolver,
formatters, theme, palette, color-token) and dedupe a few parallel
structures: the resolver's four-pass loop is now runPass + seedField,
palette tokens/tasty/css share a buildPaletteOutput driver, the
default-config literal is no longer duplicated, and theme exports
memoize the resolve result (invalidated on def mutations or
configure/resetConfig via a configVersion counter).

No public API or behavior changes; all 360 tests continue to pass.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions
Copy link
Copy Markdown
Contributor

📦 Snapshot release

Published 0.0.0-snapshot.56149c9.

pnpm add @tenphi/glaze@0.0.0-snapshot.56149c9

@tenphi tenphi merged commit 978bf60 into main May 14, 2026
3 checks passed
@github-actions github-actions Bot mentioned this pull request May 14, 2026
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