File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -241,7 +241,15 @@ export const createCommand = new Command<GlobalContext>()
241241 }
242242
243243 let buildConfig ;
244- if ( options . doNotUseDetectedBuildConfig ) {
244+ if ( ! options . doNotUseDetectedBuildConfig ) {
245+ if ( member ?. buildConfig ) {
246+ buildConfig = member ?. buildConfig ;
247+ } else {
248+ console . warn ( `No build configuration was detected in '${ buildDirectory } '.` ) ;
249+ }
250+ }
251+
252+ if ( ! buildConfig ) {
245253 const base = {
246254 frameworkPreset : options . frameworkPreset ?? "" as FrameworkPreset ,
247255 installCommand : requireUnless (
@@ -292,14 +300,6 @@ export const createCommand = new Command<GlobalContext>()
292300 break ;
293301 }
294302 }
295- } else {
296- if ( member ?. buildConfig ) {
297- buildConfig = member ?. buildConfig ;
298- } else {
299- throw new TypeError (
300- `No build configuration was detected in '${ buildDirectory } '.` ,
301- ) ;
302- }
303303 }
304304
305305 const buildTimeout = require ( options . buildTimeout , "build-timeout" ) ;
You can’t perform that action at this time.
0 commit comments