fix(fshelpers): remove outdated comment about using synchronous rm to avoid XFS metadata corruption

This commit is contained in:
2026-03-05 16:00:01 +00:00
parent fb5421a8c4
commit f8f20be4f4
3 changed files with 7 additions and 4 deletions

View File

@@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@git.zone/tsbuild',
version: '4.2.3',
version: '4.2.4',
description: 'A tool for compiling TypeScript files using the latest nightly features, offering flexible APIs and a CLI for streamlined development.'
}

View File

@@ -123,9 +123,6 @@ export class FsHelpers {
/**
* Remove a directory recursively.
* Uses synchronous rm to avoid XFS metadata corruption observed with
* async fs.promises.rm affecting sibling directory entries on the
* libuv thread pool under signal pressure.
*/
public static async removeDirectory(dirPath: string): Promise<void> {
fs.rmSync(dirPath, { recursive: true, force: true, maxRetries: 3, retryDelay: 100 });