File tree 2 files changed +4
-7
lines changed
2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 1
- import path from "path" ;
2
1
import chalk from "chalk" ;
3
- import fs from "fs-extra" ;
4
2
import ora from "ora" ;
5
3
import { execa } from "../utils/execAsync.js" ;
6
4
import { logger } from "../utils/logger.js" ;
@@ -32,9 +30,4 @@ export const initializeGit = async (projectDir: string) => {
32
30
) } could not initialize git. Update git to the latest version!\n`,
33
31
) ;
34
32
}
35
-
36
- await fs . rename (
37
- path . join ( projectDir , "_gitignore" ) ,
38
- path . join ( projectDir , ".gitignore" ) ,
39
- ) ;
40
33
} ;
Original file line number Diff line number Diff line change @@ -57,6 +57,10 @@ export const scaffoldProject = async ({
57
57
spinner . start ( ) ;
58
58
59
59
await fs . copy ( srcDir , projectDir ) ;
60
+ await fs . rename (
61
+ path . join ( projectDir , "_gitignore" ) ,
62
+ path . join ( projectDir , ".gitignore" ) ,
63
+ ) ;
60
64
61
65
if ( ! noInstall ) {
62
66
await execa ( `${ pkgManager } install` , { cwd : projectDir } ) ;
You can’t perform that action at this time.
0 commit comments