From 851d9c268c9bb331d1c3b6afb4b9dd4ace2c0f29 Mon Sep 17 00:00:00 2001 From: Jeppe Reinhold Date: Thu, 21 Dec 2023 10:17:15 +0100 Subject: [PATCH] disable INCOMPATIBLE_PEER_DEPENDENCY error for SvelteKit sandboxes --- scripts/utils/yarn.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/utils/yarn.ts b/scripts/utils/yarn.ts index 2f1fdc8b838e..006aac905f80 100644 --- a/scripts/utils/yarn.ts +++ b/scripts/utils/yarn.ts @@ -97,8 +97,8 @@ export const configureYarn2ForVerdaccio = async ({ `yarn config set enableImmutableInstalls false`, ]; - if (key === 'svelte-kit/prerelease-ts') { - // Don't error with INCOMPATIBLE_PEER_DEPENDENCY for SvelteKit prerelease, it is expected + if (key.includes('svelte-kit')) { + // Don't error with INCOMPATIBLE_PEER_DEPENDENCY for SvelteKit sandboxes, it is expected to happen with @sveltejs/vite-plugin-svelte command.push( `yarn config set logFilters --json '[ { "code": "YN0013", "level": "discard" } ]'` );