Skip to content

Commit

Permalink
fix: scaffold command should delete .git folder
Browse files Browse the repository at this point in the history
  • Loading branch information
rolljee committed Dec 11, 2024
1 parent e23617d commit f83717b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/commands/app/scaffold.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default class AppScaffold extends Kommand {
},
{
title: "Cleaning up",
task: async () => this.cleanup()
task: async () => this.cleanup(destination)
}
]);

Expand Down Expand Up @@ -115,7 +115,8 @@ export default class AppScaffold extends Kommand {
await execute("cp", "-r", `${this.templatesDir}/`, `${destination}/`);
}

async cleanup() {
async cleanup(destination: string) {
await execute("rm", "-rf", this.templatesDir);
await execute("rm", "-rf", `${destination}/.git`);
}
}

0 comments on commit f83717b

Please sign in to comment.