From 4b1d4c82e7df3b2f4ab978dd90e24e34e617ad25 Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Tue, 30 May 2023 15:22:31 +0200 Subject: [PATCH] fix the theme output during monorepo development --- code/lib/theming/scripts/fix-theme-type-export.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/lib/theming/scripts/fix-theme-type-export.ts b/code/lib/theming/scripts/fix-theme-type-export.ts index 9e5ff7cb5973..d036e9bad40f 100644 --- a/code/lib/theming/scripts/fix-theme-type-export.ts +++ b/code/lib/theming/scripts/fix-theme-type-export.ts @@ -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 {}