File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
packages/devextreme-cli/src/applications Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ const updateJsonPropName = (path, name) => {
5454const create = async ( appName , options ) => {
5555 const templateType = await getTemplateTypeInfo ( options . template ) ;
5656 const layoutType = await getLayoutInfo ( options . layout ) ;
57+ const isTs = templateOptions . isTypeScript ;
5758
5859 const templateOptions = Object . assign ( { } , options , {
5960 project : stringUtils . humanize ( appName ) ,
@@ -63,13 +64,15 @@ const create = async(appName, options) => {
6364 const toolingVersion = extractToolingVersion ( options ) ;
6465 const commandArguments = [ `-p=create-vite${ toolingVersion } ` , 'create-vite' , appName ] ;
6566
66- commandArguments . push ( `--template react${ templateOptions . isTypeScript ? '-ts' : '' } ` ) ;
67+ commandArguments . push ( `--template react${ isTs ? '-ts' : '' } ` ) ;
6768
6869 await runCommand ( 'npx' , commandArguments ) ;
6970
7071 const appPath = path . join ( process . cwd ( ) , appName ) ;
7172
72- patchTsConfig ( appPath ) ;
73+ if ( isTs ) {
74+ patchTsConfig ( appPath ) ;
75+ }
7376
7477 modifyIndexHtml ( appPath , templateOptions . project ) ;
7578
You can’t perform that action at this time.
0 commit comments