Skip to content

Commit

Permalink
fix(cli/gen): rename gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
BeADre committed Sep 28, 2022
1 parent c1c6cd1 commit a60ebd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/varlet-cli/src/commands/gen.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import logger from '../shared/logger'
import { prompt } from 'inquirer'
import { resolve } from 'path'
import { copy, pathExistsSync, readFileSync, writeFileSync } from 'fs-extra'
import { copy, pathExistsSync, readFileSync, writeFileSync, rename } from 'fs-extra'
import { CLI_PACKAGE_JSON, CWD, GENERATORS_DIR } from '../shared/constant'

type CodeStyle = 'tsx' | 'sfc'
Expand Down Expand Up @@ -78,6 +78,7 @@ export async function gen(options: GenCommandOptions) {
await copy(base, dest)
await copy(configBase, dest)
await copy(code, dest)
await rename(resolve(dest, '_gitignore'), resolve(dest, '.gitignore'))
syncVersion(name)

logger.success('✨ Application generated successfully!')
Expand Down

0 comments on commit a60ebd0

Please sign in to comment.