From a1fd622a55e3dbbf47a6a166c01fe17636cd0a76 Mon Sep 17 00:00:00 2001 From: Patrick Eriksson Date: Mon, 25 May 2020 00:02:03 +0200 Subject: [PATCH] fix(create): Use correct variable name in generated CLI output (#2547) --- .../create/__tests__/__snapshots__/create-command.test.js.snap | 2 +- commands/create/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;