Skip to content

Commit

Permalink
fix: builds-export default file path (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
kruti49 authored Nov 8, 2022
1 parent 4b3c673 commit 7070765
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/commands/builds/export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,16 @@ on the Mix platform.`

get defaultFilepath(): string {
debug('get defaultFilepath()')
const defaultFilePath = `build-${this.options['build-label']}.zip`
const {
'build-type': buildType,
'build-version': buildVersion,
'build-label': buildLabel,
project,
} = this.options

const defaultFilePath = buildLabel ? `build-${buildLabel}.zip` :
`build-${buildType.toUpperCase()}_${project}_${buildVersion}.zip`

return defaultFilePath
}

Expand Down

0 comments on commit 7070765

Please sign in to comment.