File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ async function chooseBlueprintUpdates({
3434} ) {
3535 let to ;
3636 let existingBlueprint ;
37- let blueprintUpdates ;
3837 let areAllUpToDate ;
3938
4039 let { blueprints } = emberCliUpdateJson ;
@@ -56,13 +55,20 @@ async function chooseBlueprintUpdates({
5655 message : 'Which blueprint would you like to reset?'
5756 } ) ) . blueprint ;
5857 } else {
59- blueprintUpdates = await checkForBlueprintUpdates ( {
58+ let blueprintUpdates = await checkForBlueprintUpdates ( {
6059 cwd,
6160 blueprints
6261 } ) ;
6362
6463 areAllUpToDate = blueprintUpdates . every ( blueprintUpdate => blueprintUpdate . isUpToDate ) ;
65- if ( ! areAllUpToDate ) {
64+
65+ if ( areAllUpToDate ) {
66+ // eslint-disable-next-line no-console
67+ console . log ( `${ blueprintUpdates . map ( formatBlueprintLine ) . join ( `
68+ ` ) }
69+
70+ All blueprints are up-to-date!` ) ;
71+ } else {
6672 let choicesByName = blueprintUpdates . reduce ( ( choices , blueprintUpdate ) => {
6773 let name = formatBlueprintLine ( blueprintUpdate ) ;
6874 choices [ name ] = {
@@ -111,12 +117,10 @@ async function chooseBlueprintUpdates({
111117 let blueprint = loadSafeBlueprint ( existingBlueprint ) ;
112118
113119 return {
114- blueprintUpdates,
115120 areAllUpToDate,
116121 to,
117122 blueprint
118123 } ;
119124}
120125
121126module . exports = chooseBlueprintUpdates ;
122- module . exports . formatBlueprintLine = formatBlueprintLine ;
Original file line number Diff line number Diff line change @@ -29,8 +29,6 @@ const {
2929 'codemods-url' : { default : codemodsUrlDefault }
3030} = require ( './args' ) ;
3131
32- const { formatBlueprintLine } = chooseBlueprintUpdates ;
33-
3432module . exports = async function emberCliUpdate ( {
3533 blueprint : _blueprint ,
3634 from,
@@ -103,7 +101,6 @@ module.exports = async function emberCliUpdate({
103101
104102 let {
105103 areAllUpToDate,
106- blueprintUpdates,
107104 blueprint : _blueprint ,
108105 to : _to
109106 } = await chooseBlueprintUpdates ( {
@@ -113,10 +110,7 @@ module.exports = async function emberCliUpdate({
113110 } ) ;
114111
115112 if ( areAllUpToDate ) {
116- return `${ blueprintUpdates . map ( formatBlueprintLine ) . join ( `
117- ` ) }
118-
119- All blueprints are up-to-date!` ;
113+ return ;
120114 }
121115
122116 blueprint = _blueprint ;
You can’t perform that action at this time.
0 commit comments