message: [now-cli] Hide "overwrite project settings?" prompt if no framework is detected
  This PR updates the framework auto-detection flow in `deploy` command to not show "overwrite project settings?" prompt when the API returns a `framework` property that is `null`.
diff: @@ -25,7 +25,18 @@ export default async function editProjectSettings(
  projectSettings: ProjectSettings | null,
  framework: Framework | null
  ) {
  - if (framework) {
  + // create new settings object filled with "null" values
  + const settings: Partial<ProjectSettings> = {};
  +
  + for (let field of fields) {
  + settings[field.value] =
  + (projectSettings && projectSettings[field.value]) || null;
  + }
  +
  + if (!framework) {
  + return settings;
  + }
  +
  output.print(
  `Auto-detected project settings (${chalk.bold(framework.name)}):\n`
  );
  @@ -43,22 +54,8 @@ export default async function editProjectSettings(
  ) + '\n'
  );
  }
  - }
  -
  - // create new settings object filled with "null" values
  - const settings: Partial<ProjectSettings> = {};
  -
  - for (let field of fields) {
  - settings[field.value] =
  - (projectSettings && projectSettings[field.value]) || null;
  - }
  -
  - const shouldOverrideSettings = await confirm(
  - `Want to override the settings?`,
  - false
  - );
  - if (!shouldOverrideSettings) {
  + if (!(await confirm(`Want to override the settings?`, false))) {
  return settings;
  }
  