Skip to content

Commit 26dfe51

Browse files
committed
Update comments in runStorybookDev function to clarify Angular flag handling
1 parent a35dd08 commit 26dfe51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/lib/create-storybook/src/initiate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,11 @@ async function runStorybookDev(result: {
182182
parts.push('--silent');
183183
}
184184

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

187188
if (supportSbFlags) {
188189
// npm needs extra -- to pass flags to the command
189-
// in the case of Angular, we are calling `ng run` which doesn't need the extra `--`
190190
const doesNeedExtraDash =
191191
packageManager.type === PackageManagerName.NPM ||
192192
packageManager.type === PackageManagerName.BUN;

0 commit comments

Comments
 (0)