File tree Expand file tree Collapse file tree
packages/cli/src/create/templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ export async function executeBuiltinTemplate(
4545 options ?. silent ?? false ,
4646 ) ;
4747 if ( result . exitCode !== 0 ) {
48- return { ... result , projectDir : templateInfo . targetDir } ;
48+ return { exitCode : result . exitCode } ;
4949 }
5050 const fullPath = path . join ( workspaceInfo . rootDir , templateInfo . targetDir ) ;
5151 setPackageName ( fullPath , templateInfo . packageName ) ;
@@ -71,7 +71,7 @@ export async function executeBuiltinTemplate(
7171 options ?. silent ?? false ,
7272 ) ;
7373 if ( result . exitCode !== 0 ) {
74- return { ... result , projectDir : templateInfo . targetDir } ;
74+ return { exitCode : result . exitCode } ;
7575 }
7676 const fullPath = path . join ( workspaceInfo . rootDir , templateInfo . targetDir ) ;
7777 // set package name in the project directory
You can’t perform that action at this time.
0 commit comments