mirror of
				https://github.com/gradle/gradle-build-action.git
				synced 2025-10-31 07:08:56 +08:00 
			
		
		
		
	Remove use of deprecated fs.rmdir
				
					
				
			Using fs.rm({recursive: true}) instead.
Fixes #502
			
			
This commit is contained in:
		
							
								
								
									
										2
									
								
								dist/main/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/main/index.js
									
									
									
									
										vendored
									
									
								
							| @@ -68588,7 +68588,7 @@ function tryDelete(file) { | ||||
|             try { | ||||
|                 const stat = fs.lstatSync(file); | ||||
|                 if (stat.isDirectory()) { | ||||
|                     fs.rmdirSync(file, { recursive: true }); | ||||
|                     fs.rmSync(file, { recursive: true }); | ||||
|                 } | ||||
|                 else { | ||||
|                     fs.unlinkSync(file); | ||||
|   | ||||
							
								
								
									
										2
									
								
								dist/main/index.js.map
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/main/index.js.map
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										2
									
								
								dist/post/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/post/index.js
									
									
									
									
										vendored
									
									
								
							| @@ -67639,7 +67639,7 @@ function tryDelete(file) { | ||||
|             try { | ||||
|                 const stat = fs.lstatSync(file); | ||||
|                 if (stat.isDirectory()) { | ||||
|                     fs.rmdirSync(file, { recursive: true }); | ||||
|                     fs.rmSync(file, { recursive: true }); | ||||
|                 } | ||||
|                 else { | ||||
|                     fs.unlinkSync(file); | ||||
|   | ||||
							
								
								
									
										2
									
								
								dist/post/index.js.map
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/post/index.js.map
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| @@ -223,7 +223,7 @@ export async function tryDelete(file: string): Promise<void> { | ||||
|         try { | ||||
|             const stat = fs.lstatSync(file) | ||||
|             if (stat.isDirectory()) { | ||||
|                 fs.rmdirSync(file, {recursive: true}) | ||||
|                 fs.rmSync(file, {recursive: true}) | ||||
|             } else { | ||||
|                 fs.unlinkSync(file) | ||||
|             } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user