Skip to content

Commit 6d7f5fb

Browse files
committed
fix
1 parent 02d2d65 commit 6d7f5fb

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

deploy/create/mod.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff 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");

0 commit comments

Comments
 (0)