Skip to content

Commit 4918786

Browse files
authored
fix: dont require build commands (#76)
1 parent ee8da12 commit 4918786

1 file changed

Lines changed: 3 additions & 15 deletions

File tree

deploy/create/mod.ts

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -255,21 +255,9 @@ export const createCommand = new Command<GlobalContext>()
255255
if (!buildConfig) {
256256
const base = {
257257
frameworkPreset: options.frameworkPreset ?? "" as FrameworkPreset,
258-
installCommand: requiredUnless(
259-
options.installCommand,
260-
options.frameworkPreset,
261-
"install-command",
262-
),
263-
buildCommand: requiredUnless(
264-
options.buildCommand,
265-
options.frameworkPreset,
266-
"build-command",
267-
),
268-
preDeployCommand: requiredUnless(
269-
options.preDeployCommand,
270-
options.frameworkPreset,
271-
"pre-deploy-command",
272-
),
258+
installCommand: options.installCommand ?? "",
259+
buildCommand: options.buildCommand ?? "",
260+
preDeployCommand: options.preDeployCommand ?? "",
273261
};
274262

275263
const runtimeMode = requiredUnless(

0 commit comments

Comments
 (0)