11'use strict' ;
22
33const inquirer = require ( 'inquirer' ) ;
4- const run = require ( './run' ) ;
54const getProjectOptions = require ( './get-project-options' ) ;
65const getPackageName = require ( './get-package-name' ) ;
76const getPackageVersion = require ( './get-package-version' ) ;
@@ -20,6 +19,8 @@ const saveDefaultBlueprint = require('./save-default-blueprint');
2019const checkForBlueprintUpdates = require ( './check-for-blueprint-updates' ) ;
2120const loadSafeDefaultBlueprint = require ( './load-safe-default-blueprint' ) ;
2221const loadSafeBlueprint = require ( './load-safe-blueprint' ) ;
22+ const stageBlueprintFile = require ( './stage-blueprint-file' ) ;
23+ const getBlueprintFilePath = require ( './get-blueprint-file-path' ) ;
2324
2425const toDefault = require ( './args' ) . to . default ;
2526
@@ -197,7 +198,7 @@ All blueprints are up-to-date!`;
197198 runCodemods,
198199 codemodsUrl : 'https://raw.githubusercontent.com/ember-cli/ember-cli-update-codemods-manifest/v3/manifest.json' ,
199200 createCustomDiff,
200- ignoredFiles : [ 'config/ember-cli-update.json' ] ,
201+ ignoredFiles : [ await getBlueprintFilePath ( cwd ) ] ,
201202 wasRunAsExecutable
202203 } ) ) . promise ;
203204
@@ -223,7 +224,7 @@ All blueprints are up-to-date!`;
223224 }
224225
225226 if ( ! reset ) {
226- await run ( 'git add config/ember-cli-update.json' ) ;
227+ await stageBlueprintFile ( cwd ) ;
227228 }
228229 } else {
229230 let { blueprints } = await loadSafeBlueprintFile ( cwd ) ;
@@ -238,7 +239,7 @@ All blueprints are up-to-date!`;
238239 } ) ;
239240
240241 if ( ! reset ) {
241- await run ( 'git add config/ember-cli-update.json' ) ;
242+ await stageBlueprintFile ( cwd ) ;
242243 }
243244 }
244245 }
0 commit comments