Skip to content

Commit d196368

Browse files
committed
feat(ui-scripts): refactor theme type generation and fix token fetching script
1 parent 732d946 commit d196368

3 files changed

Lines changed: 293 additions & 135 deletions

File tree

packages/ui-scripts/lib/build/buildThemes/setupThemes.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ const setupThemes = async (targetPath: string, input: any): Promise<void> => {
166166
const componentThemeVars = generateComponent(
167167
component.data[fullComponentName]
168168
)
169-
170169
const componentTypes = generateComponentType(
171170
component.data[fullComponentName]
172171
)
@@ -179,13 +178,10 @@ const setupThemes = async (targetPath: string, input: any): Promise<void> => {
179178
const componentFileContent = `
180179
181180
${usesSemantic ? "import type { Semantics} from '../semantics'" : ''}
182-
import type { ${capitalize(
183-
fullComponentName
184-
)} } from '../../componentTypes/${fullComponentName}'
185181
186182
const ${fullComponentName} = (${
187183
usesSemantic ? 'semantic: Semantics' : ''
188-
}): ${capitalize(fullComponentName)} => ({${componentThemeVars}})
184+
}) => ({${componentThemeVars}})
189185
export default ${fullComponentName}
190186
`
191187
await createFile(

0 commit comments

Comments
 (0)