diff --git a/commands/create/__tests__/__snapshots__/create-command.test.js.snap b/commands/create/__tests__/__snapshots__/create-command.test.js.snap index 82e47e6cbe..14659d46c4 100644 --- a/commands/create/__tests__/__snapshots__/create-command.test.js.snap +++ b/commands/create/__tests__/__snapshots__/create-command.test.js.snap @@ -67,7 +67,7 @@ index SHA..SHA @@ -0,0 +1,26 @@ +'use strict'; + -+const yargs = require('yargs/yargs'); ++const factory = require('yargs/yargs'); +const myCli = require('./my-cli'); + +module.exports = cli; diff --git a/commands/create/index.js b/commands/create/index.js index 5e9fccf19e..3aac0e228f 100644 --- a/commands/create/index.js +++ b/commands/create/index.js @@ -450,7 +450,7 @@ class CreateCommand extends Command { : dedent` 'use strict'; - const yargs = require('yargs/yargs'); + const factory = require('yargs/yargs'); const ${this.camelName} = require('./${this.dirName}'); module.exports = cli;