From 2d7f0c3f52ed9c0192040f78f80b5d83f83e7d24 Mon Sep 17 00:00:00 2001 From: Miguel Ramos Date: Tue, 9 Aug 2022 00:20:15 +0100 Subject: [PATCH] fix: remove .git directory on package. (#23) Close #22 --- cmd/create.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/create.go b/cmd/create.go index 918a7d8..7aa1e0c 100644 --- a/cmd/create.go +++ b/cmd/create.go @@ -209,6 +209,8 @@ func (ctx *CreateFlags) CreatePackage() { ctx.CommandError(err.Error(), utils.ErrorInvalidGit) } + _ = os.RemoveAll(filepath.Join(ctx.PackageDir, ".git")) + var libPackageJson = "templates/lib-package.json" var libTsconfigJson = "templates/tsconfig-lib.json" var libViteConfigJson = "templates/vite-config-typescript.json"