Skip to content

Commit b9508d8

Browse files
committed
refactor(deploy): normalize output flag early so verbose implies output
1 parent 421c076 commit b9508d8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/cli/src/commands/deploy.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,14 @@ export default class Deploy extends AuthCommand {
8989
force,
9090
preview,
9191
'schedule-on-deploy': scheduleOnDeploy,
92-
output,
92+
output: outputFlag,
9393
verbose,
9494
config: configFilename,
9595
'verify-runtime-dependencies': verifyRuntimeDependencies,
9696
'debug-bundle': debugBundle,
9797
'debug-bundle-output-file': debugBundleOutputFile,
9898
} = flags
99+
const output = outputFlag || verbose
99100
const { configDirectory, configFilenames } = splitConfigFilePath(configFilename)
100101
const {
101102
config: checklyConfig,
@@ -233,7 +234,7 @@ export default class Deploy extends AuthCommand {
233234

234235
try {
235236
const { data } = await api.projects.deploy({ ...projectPayload, repoInfo }, { dryRun: preview, scheduleOnDeploy })
236-
if (preview || output || verbose) {
237+
if (preview || output) {
237238
this.log(this.formatPreview(data, project, verbose))
238239
}
239240
if (!preview) {

0 commit comments

Comments
 (0)