From ce85320655d3f3779b6d274ad312385b988f252a Mon Sep 17 00:00:00 2001 From: Yann Braga Date: Thu, 28 Nov 2024 14:38:28 +0100 Subject: [PATCH] add safeguard --- scripts/utils/yarn.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/utils/yarn.ts b/scripts/utils/yarn.ts index 505ddf3a78b4..142432fa6354 100644 --- a/scripts/utils/yarn.ts +++ b/scripts/utils/yarn.ts @@ -94,7 +94,7 @@ export const addWorkaroundResolutions = async ({ '@testing-library/user-event': '^14.5.2', }; - if (key.includes('svelte-kit')) { + if (key?.includes('svelte-kit')) { packageJson.resolutions['@sveltejs/vite-plugin-svelte'] = '^3.0.0'; }