File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,13 @@ 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+ defaultPackageName,
26+ defaultAppBlueprintName
27+ } = require ( './constants' ) ;
2428const normalizeBlueprintArgs = require ( './normalize-blueprint-args' ) ;
29+ const semver = require ( 'semver' ) ;
2530
2631/**
2732 * If `version` attribute exists in the `blueprint` object and URL is empty, skip. Otherwise resolve the details of
@@ -211,6 +216,18 @@ module.exports = async function emberCliUpdate({
211216 let versions = await getVersions ( packageName ) ;
212217 let getTagVersion = _getTagVersion ( versions , packageName ) ;
213218 endBlueprint . version = await getTagVersion ( to ) ;
219+
220+ if (
221+ packageName === defaultPackageName &&
222+ endBlueprint . name === defaultAppBlueprintName &&
223+ semver . gte ( endBlueprint . version , '6.8.0' )
224+ ) {
225+ console . log (
226+ `You cannot use ember-cli-update to automatically upgrade past 6.7. Read the following documentation to find out how to proceed <link to somewhere> `
227+ ) ;
228+
229+ process . exit ( 1 ) ;
230+ }
214231 }
215232
216233 let customDiffOptions = getStartAndEndCommands ( {
You can’t perform that action at this time.
0 commit comments