File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
code/lib/create-storybook/src Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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 ;
@@ -201,13 +201,13 @@ async function runStorybookDev(result: {
201201
202202 if ( useAlternativePort ) {
203203 parts . push ( `-p` , `${ availablePort } ` ) ;
204+ }
204205
205- if ( supportsOnboarding && shouldOnboard ) {
206- parts . push ( '--initial-path=/onboarding' ) ;
207- }
208-
209- parts . push ( '--quiet' ) ;
206+ if ( supportsOnboarding && shouldOnboard ) {
207+ parts . push ( '--initial-path=/onboarding' ) ;
210208 }
209+
210+ parts . push ( '--quiet' ) ;
211211 }
212212
213213 // instead of calling 'dev' automatically, we spawn a subprocess so that it gets
You can’t perform that action at this time.
0 commit comments