Skip to content

Commit

Permalink
fix(core): listen to the write stream end unpacking lite client (#20642)
Browse files Browse the repository at this point in the history
  • Loading branch information
vsavkin authored Dec 7, 2023
1 parent c2be2ad commit 61429c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/nx/src/nx-cloud/update-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,8 @@ async function downloadAndExtractClientBundle(
const writeStream = createWriteStream(outputFilePath);
stream.pipe(writeStream);

stream.on('end', function () {
// Continue the tar stream after the write stream closes
writeStream.on('close', () => {
next();
});

Expand Down

0 comments on commit 61429c0

Please sign in to comment.