Chore: simplify build infra

This commit is contained in:
SukkaW
2023-12-10 23:55:05 +08:00
parent dc8ba51257
commit a0a772d2e1
12 changed files with 137 additions and 114 deletions

View File

@@ -1,4 +1,5 @@
import retry from 'async-retry';
import picocolors from 'picocolors';
// retry settings
const MIN_TIMEOUT = 10;
@@ -86,7 +87,7 @@ function createFetchRetry($fetch: typeof fetch): typeof fetch {
err.name === 'AbortError'
|| ('digest' in err && err.digest === 'AbortError')
) {
console.log('[fetch abort]', url.toString());
console.log(picocolors.gray('[fetch abort]'), picocolors.gray(url.toString()));
return bail(err);
}
}