Skip to content

Commit

Permalink
fix: an issue where the user had to select a build command that is al…
Browse files Browse the repository at this point in the history
…ready defined (#6401)
  • Loading branch information
lukasholzer authored Feb 22, 2024
1 parent 49f60f0 commit 98f84de
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/utils/build-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ export const detectFrameworkSettings = async (
return settings[0]
}

if (type === 'build' && command.netlify.config?.build?.command?.length) {
return {
...settings[0],
buildCommand: command.netlify.config.build.command,
}
}

if (settings.length > 1) {
// multiple matching detectors, make the user choose
const scriptInquirerOptions = formatSettingsArrForInquirer(settings, type)
Expand Down

1 comment on commit 98f84de

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

  • Dependency count: 1,283
  • Package size: 282 MB
  • Number of ts-expect-error directives: 1,180

Please sign in to comment.