Skip to content

Commit

Permalink
fix: storybook build
Browse files Browse the repository at this point in the history
  • Loading branch information
lisalupi committed Feb 13, 2025
1 parent 4f7cd34 commit 77bec42
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 1 addition & 2 deletions packages/ui/src/__stories__/Tools/ThemeGenerator/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import { useCallback, useEffect, useState } from 'react'
import {
TOKENS_URL,
generatePalette,
// @ts-expect-error this is mjs file
} from '../../../../../../scripts/figma-synchronise-tokens'
} from '../../../../../../utils/scripts/figma-synchronise-tokens'
import { Form, useForm } from '../../../../../form/src'
import { Stack, Text } from '../../../components'
import type { UltravioletUITheme } from '../../../theme'
Expand Down
7 changes: 5 additions & 2 deletions utils/scripts/figma-synchronise-tokens.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -350,5 +350,8 @@ const writeFiles = async () => {
}),
)
}

await writeFiles()
;(async () => {
if (typeof process !== 'undefined' && process.versions?.node) {
await writeFiles()
}
})().catch(console.error)

0 comments on commit 77bec42

Please sign in to comment.