@@ -20,8 +20,15 @@ const getBaseBlueprint = require('./get-base-blueprint');
2020const chooseBlueprintUpdates = require ( './choose-blueprint-updates' ) ;
2121const getBlueprintFilePath = require ( './get-blueprint-file-path' ) ;
2222const resolvePackage = require ( './resolve-package' ) ;
23- const { defaultTo } = require ( './constants' ) ;
23+ const {
24+ defaultTo,
25+ defaultAppBlueprintName,
26+ defaultPackageName,
27+ EMBER_LEGACY_BLUEPRINT_VERSION ,
28+ CLASSIC_BUILD_APP_BLUEPRINT
29+ } = require ( './constants' ) ;
2430const normalizeBlueprintArgs = require ( './normalize-blueprint-args' ) ;
31+ const semver = require ( 'semver' ) ;
2532
2633/**
2734 * If `version` attribute exists in the `blueprint` object and URL is empty, skip. Otherwise resolve the details of
@@ -211,6 +218,18 @@ module.exports = async function emberCliUpdate({
211218 let versions = await getVersions ( packageName ) ;
212219 let getTagVersion = _getTagVersion ( versions , packageName ) ;
213220 endBlueprint . version = await getTagVersion ( to ) ;
221+
222+ if (
223+ endBlueprint . isBaseBlueprint &&
224+ packageName === defaultPackageName &&
225+ endBlueprint . name === defaultAppBlueprintName &&
226+ semver . gte ( to , EMBER_LEGACY_BLUEPRINT_VERSION )
227+ ) {
228+ endBlueprint . name = CLASSIC_BUILD_APP_BLUEPRINT ;
229+ endBlueprint . packageName = CLASSIC_BUILD_APP_BLUEPRINT ;
230+
231+ await _resolvePackage ( endBlueprint , packageUrl , to ) ;
232+ }
214233 }
215234
216235 let customDiffOptions = getStartAndEndCommands ( {
0 commit comments