From 0dd3e71353be7ca22ad49cc33b5c33b8178ceca4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Wed, 28 Aug 2024 10:02:28 -0500 Subject: [PATCH] feat: iteration safe assets --- scripts/buildAssets/index.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/buildAssets/index.ts b/scripts/buildAssets/index.ts index a3b5cf0a8..d40ef5aa9 100644 --- a/scripts/buildAssets/index.ts +++ b/scripts/buildAssets/index.ts @@ -44,5 +44,11 @@ const methods = [ ]; for (const method of methods) { - if (allTargets || targets?.includes(method.name)) await method(); + if (allTargets || targets?.includes(method.name)) { + try { + await method(); + } catch (error) { + console.warn(`Failed method ${method.name}; skipping...`, error); + } + } }