Skip to content

Commit

Permalink
Merge pull request #16823 from ThaNarie/patch-1
Browse files Browse the repository at this point in the history
Core: Fix packageName check in build-dev
  • Loading branch information
shilman committed Nov 29, 2021
2 parents 43e5940 + bfb942b commit 72735c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core-server/src/build-dev.ts
Expand Up @@ -112,7 +112,7 @@ export async function buildDevStandalone(options: CLIOptions & LoadOptions & Bui
}

// Get package name and capitalize it e.g. @storybook/react -> React
const packageName = name.split('@storybook/').length > 0 ? name.split('@storybook/')[1] : name;
const packageName = name.split('@storybook/').length > 1 ? name.split('@storybook/')[1] : name;
const frameworkName = packageName.charAt(0).toUpperCase() + packageName.slice(1);

outputStartupInformation({
Expand Down

0 comments on commit 72735c6

Please sign in to comment.