@@ -30,6 +30,7 @@ const getGeneratedFileValue = async (value = "node") => {
30
30
} ;
31
31
32
32
const createFile = async ( filePath , contents ) => {
33
+ console . log ( "===createFile===" , filePath ) ;
33
34
try {
34
35
return new Promise ( ( resolve , reject ) => {
35
36
fs . writeFile ( filePath , contents , "utf-8" , function ( err ) {
@@ -46,6 +47,7 @@ const createFile = async (filePath, contents) => {
46
47
} ;
47
48
48
49
const overWriteFile = async ( filePath , contents ) => {
50
+ console . log ( "===overWriteFile===" , filePath ) ;
49
51
try {
50
52
return new Promise ( ( resolve , reject ) => {
51
53
fs . appendFileSync ( filePath , contents , "utf-8" , function ( err ) {
@@ -63,6 +65,7 @@ const overWriteFile = async (filePath, contents) => {
63
65
64
66
const generateGitignoreFile = async ( contents ) => {
65
67
const filePath = path . resolve ( path . join ( process . cwd ( ) , ".gitignore" ) ) ;
68
+ console . log ( "filePath: " , filePath ) ;
66
69
const isExists = await fs . existsSync ( filePath ) ;
67
70
if ( isExists ) {
68
71
await overWriteFile ( filePath , contents ) ;
0 commit comments