@@ -30,6 +30,7 @@ const getGeneratedFileValue = async (value = "node") => {
3030} ;
3131
3232const createFile = async ( filePath , contents ) => {
33+ console . log ( "===createFile===" , filePath ) ;
3334 try {
3435 return new Promise ( ( resolve , reject ) => {
3536 fs . writeFile ( filePath , contents , "utf-8" , function ( err ) {
@@ -46,6 +47,7 @@ const createFile = async (filePath, contents) => {
4647} ;
4748
4849const overWriteFile = async ( filePath , contents ) => {
50+ console . log ( "===overWriteFile===" , filePath ) ;
4951 try {
5052 return new Promise ( ( resolve , reject ) => {
5153 fs . appendFileSync ( filePath , contents , "utf-8" , function ( err ) {
@@ -63,6 +65,7 @@ const overWriteFile = async (filePath, contents) => {
6365
6466const generateGitignoreFile = async ( contents ) => {
6567 const filePath = path . resolve ( path . join ( process . cwd ( ) , ".gitignore" ) ) ;
68+ console . log ( "filePath: " , filePath ) ;
6669 const isExists = await fs . existsSync ( filePath ) ;
6770 if ( isExists ) {
6871 await overWriteFile ( filePath , contents ) ;
0 commit comments