Skip to content

Commit

Permalink
fix(create-react-app): use right param for create react app with type…
Browse files Browse the repository at this point in the history
…script
  • Loading branch information
neilime committed Apr 16, 2020
1 parent b581456 commit 858343b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/actions/create-react-app/CreateReactApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default class CreateReactApp implements IAction {

// Create app
info('Creating app...');
await exec(createReactAppCmd + ' ' + realpath + ' --typescript', dirname(realpath));
await exec(createReactAppCmd + ' ' + realpath + ' --template typescript', dirname(realpath));
success('App has been created in "' + realpath + '"');
}

Expand Down Expand Up @@ -142,4 +142,4 @@ export default class CreateReactApp implements IAction {
await this.generateReadme.run({ realpath, mustPrompt: true });
}

}
}

0 comments on commit 858343b

Please sign in to comment.