diff --git a/CHANGELOG.md b/CHANGELOG.md index 007520d..50bceaa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## 0.2.3 (2023-03-13) + +#### Main Changed + +- 05f9a47 fix: remove `.git` after clone + +## 0.2.2 -> 0.2.3 + ## 0.2.1 (2023-03-13) #### Main Changed diff --git a/package.json b/package.json index dc5e81c..f177a07 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "create-electron-vite", - "version": "0.2.1", + "version": "0.2.3", "type": "module", "description": "Scaffolding Your Electron + Vite Project", "license": "MIT", diff --git a/src/index.ts b/src/index.ts index 6e856e4..893f917 100644 --- a/src/index.ts +++ b/src/index.ts @@ -143,6 +143,7 @@ function gitClone({ const fullCloneTargetDir = path.join(cwd, cloneTargetDir) // extract files from the clone target dir + fs.rmSync(path.join(fullCloneTargetDir, '.git'), { recursive: true, force: true }) fs.copySync(fullCloneTargetDir, fullTargetDir) fs.rmSync(fullCloneTargetDir, { recursive: true, force: true })