Skip to content

Commit

Permalink
fix: remove .git directory on package. (#23)
Browse files Browse the repository at this point in the history
Close #22
  • Loading branch information
miguelramos committed Aug 8, 2022
1 parent 40755e1 commit 2d7f0c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2d7f0c3

Please sign in to comment.