From f83717bb7c7be8ff6fe481127af1d563b12806ac Mon Sep 17 00:00:00 2001 From: rolljee Date: Wed, 11 Dec 2024 09:22:31 +0100 Subject: [PATCH] fix: scaffold command should delete .git folder --- src/commands/app/scaffold.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/commands/app/scaffold.ts b/src/commands/app/scaffold.ts index 48a03791..9067c11e 100644 --- a/src/commands/app/scaffold.ts +++ b/src/commands/app/scaffold.ts @@ -49,7 +49,7 @@ export default class AppScaffold extends Kommand { }, { title: "Cleaning up", - task: async () => this.cleanup() + task: async () => this.cleanup(destination) } ]); @@ -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`); } }