File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,12 @@ async function setup_theme(themeName) {
8787 zip . extractAllTo ( 'theme-redone' , true ) ; // Extract to current directory
8888 spinner . succeed ( 'Unzipping completed' ) ;
8989
90+ // Delete the .git directory from the new theme folder
91+ const gitDirPath = path . join ( newThemePath , '.git' ) ;
92+ if ( fs . existsSync ( gitDirPath ) ) {
93+ fs . rmSync ( gitDirPath , { recursive : true , force : true } ) ;
94+ }
95+
9096 // Rename the extracted folder
9197 // Note: You need to adjust the logic here to determine the correct extracted folder name
9298 spinner . start ( 'Renaming the folder...' ) ;
Original file line number Diff line number Diff line change 11{
22 "name" : " @webredone/trb-cli" ,
3- "version" : " 3.0.5 " ,
3+ "version" : " 3.0.6 " ,
44 "description" : " TRB-CLI is a handy Node.js CLI that automates the process of managing blocks in a Theme Redone WordPress theme" ,
55 "main" : " index.js" ,
66 "type" : " module" ,
You can’t perform that action at this time.
0 commit comments