@@ -9,7 +9,7 @@ const pkgConf = require("pkg-conf");
99const inquirer = require ( "inquirer" ) ;
1010const npmRunPath = require ( "npm-run-path" ) ;
1111const utils = require ( "./cli-utils" ) ;
12- const codemods = require ( "./codemods " ) ;
12+ const migrationVerions = require ( "./migrations " ) ;
1313
1414function runScripts ( scripts , files ) {
1515 const spawnOptions = {
@@ -54,9 +54,9 @@ if (!utils.checkGitStatus(cli.flags.force)) {
5454 process . exit ( 1 ) ;
5555}
5656
57- codemods . sort ( utils . sortByVersion ) ;
57+ migrationVerions . sort ( utils . sortByVersion ) ;
5858
59- const versions = utils . getVersions ( codemods ) ;
59+ const versions = utils . getVersions ( migrationVerions ) ;
6060
6161const avaConf = pkgConf . sync ( "ava" ) ;
6262const defaultFiles = "test.js test-*.js test/**/*.js **/__tests__/**/*.js **/*.test.js" ;
@@ -65,13 +65,13 @@ const questions = [
6565 {
6666 type : "list" ,
6767 name : "currentVersion" ,
68- message : "What version of AVA are you currently using?" ,
68+ message : "What version of Almin are you currently using?" ,
6969 choices : versions . slice ( 0 , - 1 )
7070 } ,
7171 {
7272 type : "list" ,
7373 name : "nextVersion" ,
74- message : "What version of AVA are you moving to?" ,
74+ message : "What version of Almin are you moving to?" ,
7575 choices : versions . slice ( 1 )
7676 } ,
7777 {
@@ -91,7 +91,7 @@ inquirer.prompt(questions, answers => {
9191 return ;
9292 }
9393
94- const scripts = utils . selectScripts ( codemods , answers . currentVersion , answers . nextVersion ) ;
94+ const scripts = utils . selectScripts ( migrationVerions , answers . currentVersion , answers . nextVersion ) ;
9595
9696 runScripts ( scripts , globby . sync ( files ) ) ;
9797} ) ;
0 commit comments