Skip to content

Commit

Permalink
Merge pull request #22841 from storybookjs/norbert/fix-dev-theming
Browse files Browse the repository at this point in the history
Build: fix the theme output during development
  • Loading branch information
ndelangen authored and shilman committed Jun 4, 2023
1 parent 87f7d64 commit 0a8dc2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/lib/theming/scripts/fix-theme-type-export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const run = async () => {
const target = join(process.cwd(), 'dist', 'index.d.ts');
const contents = await readFile(target, 'utf8');

const footer = contents.includes('// devmode')
const footer = contents.includes('// dev-mode')
? `export { StorybookTheme as Theme } from '../src/index';`
: dedent`
interface Theme extends StorybookTheme {}
Expand Down

0 comments on commit 0a8dc2d

Please sign in to comment.