Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions code/lib/create-storybook/src/initiate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,11 @@ async function runStorybookDev(result: {
parts.push('--silent');
}

// in the case of Angular, we are calling `ng run` which doesn't allow passing flags to the command
const supportSbFlags = projectType !== ProjectType.ANGULAR;

if (supportSbFlags) {
// npm needs extra -- to pass flags to the command
// in the case of Angular, we are calling `ng run` which doesn't need the extra `--`
const doesNeedExtraDash =
packageManager.type === PackageManagerName.NPM ||
packageManager.type === PackageManagerName.BUN;
Expand All @@ -201,13 +201,13 @@ async function runStorybookDev(result: {

if (useAlternativePort) {
parts.push(`-p`, `${availablePort}`);
}

if (supportsOnboarding && shouldOnboard) {
parts.push('--initial-path=/onboarding');
}

parts.push('--quiet');
if (supportsOnboarding && shouldOnboard) {
parts.push('--initial-path=/onboarding');
}

parts.push('--quiet');
}

// instead of calling 'dev' automatically, we spawn a subprocess so that it gets
Expand Down