migrate to vite (#16)

This commit is contained in:
Brian Beck 2026-03-13 23:00:08 -07:00 committed by GitHub
parent 1373f12ab4
commit 5025065188
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
165 changed files with 56708 additions and 8931 deletions

View file

@ -32,7 +32,6 @@ const { values: args } = parseArgs({
strict: true,
});
function errorMessage(e: unknown): string {
if (e instanceof AggregateError && e.errors.length > 0) {
return errorMessage(e.errors[0]);
@ -281,7 +280,9 @@ async function main() {
if (attempt < maxRetries) {
const delay = attempt * 2;
const msg = errorMessage(e);
console.warn(`Attempt ${attempt} failed: ${msg}, retrying in ${delay}s...`);
console.warn(
`Attempt ${attempt} failed: ${msg}, retrying in ${delay}s...`,
);
await new Promise((r) => setTimeout(r, delay * 1000));
} else {
const msg = errorMessage(e);
@ -303,7 +304,9 @@ async function main() {
if (e?.isNetwork && attempt < maxRetries) {
const delay = attempt * 2;
const msg = errorMessage(e);
console.warn(`Attempt ${attempt} failed: ${msg}, retrying in ${delay}s...`);
console.warn(
`Attempt ${attempt} failed: ${msg}, retrying in ${delay}s...`,
);
await new Promise((r) => setTimeout(r, delay * 1000));
} else {
const msg = errorMessage(e);