Skip to content

Commit c715409

Browse files
authored
Update packages/cli/commands/create.ts
1 parent 91ed703 commit c715409

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cli/commands/create.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ async function createProject(cwd: string, options: Options) {
8686
force: async ({ results: { directory } }) => {
8787
if (
8888
fs.existsSync(directory!) &&
89-
fs.readdirSync(directory!).filter((x) => !x.startsWith('.')).length > 0
89+
fs.readdirSync(directory!).filter((x) => !x.startsWith('.git')).length > 0
9090
) {
9191
const force = await p.confirm({
9292
message: 'Directory not empty. Continue?',

0 commit comments

Comments
 (0)