File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 22 "name" : " leafs/cli" ,
33 "description" : " A simple command line tool for installing and interacting with your leaf apps" ,
44 "homepage" : " https://cli.leafphp.dev" ,
5- "version" : " v4.1. 2" ,
5+ "version" : " v4.2" ,
66 "keywords" : [
77 " leaf" ,
88 " php" ,
Original file line number Diff line number Diff line change @@ -151,8 +151,8 @@ protected function handle(): int
151151 \Leaf \FS \File::delete ("$ directory/package.json " );
152152 }
153153
154- \Leaf \FS \Directory::delete ("$ directory/app/views " );
155- \Leaf \FS \Directory::delete ("$ directory/app/routes " );
154+ \Leaf \FS \Directory::delete ("$ directory/app/views " , [ ' recursive ' => true ] );
155+ \Leaf \FS \Directory::delete ("$ directory/app/routes " , [ ' recursive ' => true ] );
156156
157157 \Leaf \FS \Directory::copy (__DIR__ . '/themes/api/routes ' , "$ directory/app/routes " );
158158
@@ -214,7 +214,7 @@ protected function handle(): int
214214 }
215215
216216 if ($ extraOptions ['auth ' ] ?? false ) {
217- $ extraCommands [] = "php leaf scaffold:auth " . ( $ this -> projectType === ' api ' ? ' --api ' : '' ) ;
217+ $ extraCommands [] = "php leaf scaffold:auth " ;
218218 }
219219
220220 if ($ extraOptions ['tests ' ] ?? false ) {
You can’t perform that action at this time.
0 commit comments