Skip to content

Commit

Permalink
Provide commander with package name (#1867)
Browse files Browse the repository at this point in the history
commander to figure it out on its own
  • Loading branch information
mkazantsev authored and Timer committed Mar 22, 2017
1 parent 2574a7e commit 82cebbf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/create-react-app/createReactApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ const tmp = require('tmp');
const unpack = require('tar-pack').unpack;
const hyperquest = require('hyperquest');

const packageJson = require('./package.json');

let projectName;

const program = commander
.version(require('./package.json').version)
const program = new commander.Command(packageJson.name)
.version(packageJson.version)
.arguments('<project-directory>')
.usage(`${chalk.green('<project-directory>')} [options]`)
.action(name => {
Expand Down

0 comments on commit 82cebbf

Please sign in to comment.