From 858343b5b61b0785877a4de36f599bae76bbf83a Mon Sep 17 00:00:00 2001 From: Emilien Escalle Date: Thu, 16 Apr 2020 21:46:10 +0200 Subject: [PATCH] fix(create-react-app): use right param for create react app with typescript --- src/actions/create-react-app/CreateReactApp.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/actions/create-react-app/CreateReactApp.ts b/src/actions/create-react-app/CreateReactApp.ts index 8e8f6086..f0fbea41 100644 --- a/src/actions/create-react-app/CreateReactApp.ts +++ b/src/actions/create-react-app/CreateReactApp.ts @@ -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 + '"'); } @@ -142,4 +142,4 @@ export default class CreateReactApp implements IAction { await this.generateReadme.run({ realpath, mustPrompt: true }); } -} \ No newline at end of file +}