Skip to content

Commit

Permalink
Explicitly exit process when download scripts finish
Browse files Browse the repository at this point in the history
Sometimes these scripts seem to just not stop
  • Loading branch information
GarboMuffin committed Apr 9, 2022
1 parent 1d104b8 commit 7af10f4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/download-library-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,5 @@ limiter.onDone(() => {
}
}
console.timeEnd('Download assets');
process.exit(0);
});
3 changes: 3 additions & 0 deletions scripts/download-packager.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ if (!isAlreadyDownloaded()) {
fs.writeFileSync(path, zlib.brotliCompressSync(buffer));
console.timeEnd('Download packager');
})
.then(() => {
process.exit(0);
})
.catch((err) => {
console.error(err);
process.exit(1);
Expand Down
3 changes: 3 additions & 0 deletions scripts/update-packager.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ const run = async () => {
};

run()
.then(() => {
process.exit(0);
})
.catch((err) => {
console.error(err);
process.exit(1);
Expand Down

0 comments on commit 7af10f4

Please sign in to comment.