An open source design system that's fully customizable and agent ready
TypeScript
fix(cli): add export {} to generated .variants.d.ts for module augmentation (#1228)
Cindy Zhanga2acab02c6ef
diff --git a/packages/cli/src/commands/build-theme.mjs b/packages/cli/src/commands/build-theme.mjsindex 53e5e5a084..7592c6d95e 100644--- a/packages/cli/src/commands/build-theme.mjs+++ b/packages/cli/src/commands/build-theme.mjs@@ -219,7 +219,7 @@ async function generateVariantDeclarationsAsync(themeDef) {);if (!hasCustom) return null;- const sections = ['// Generated by xds theme build', ''];+ const sections = ['// Generated by xds theme build', 'export {};', ''];for (const [component, props] of Object.entries(customValues)) {for (const [prop, values] of Object.entries(props)) {