files - add more tests and fix promisify issue with fs.read and fs.write

This commit is contained in:
Benjamin Pasero
2022-01-12 11:32:41 +01:00
parent 1a18335429
commit 31dfab2f7c
6 changed files with 89 additions and 43 deletions
+1 -1
View File
@@ -402,7 +402,7 @@ export async function main(argv: string[]): Promise<any> {
const cts = new CancellationTokenSource();
child.on('close', () => cts.dispose(true));
await watchFileContents(tmpName, chunk => stream.write(chunk), cts.token);
await watchFileContents(tmpName, chunk => stream.write(chunk), () => { /* ignore */ }, cts.token);
} finally {
unlinkSync(tmpName);
}