Skip to content

Commit

Permalink
Merge pull request #14 from electron-vite/v0.2.3
Browse files Browse the repository at this point in the history
V0.2.3
  • Loading branch information
caoxiemeihao committed Mar 13, 2023
2 parents bda51d1 + fa3cee4 commit b3b962a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 })

Expand Down

0 comments on commit b3b962a

Please sign in to comment.