From 165cc98cfc324f40cb4adc3494513a1cc7838671 Mon Sep 17 00:00:00 2001 From: sapphi-red <49056869+sapphi-red@users.noreply.github.com> Date: Thu, 14 Nov 2024 10:55:00 +0900 Subject: [PATCH] chore: run with updated Vitest for Vite 6 --- utils.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils.ts b/utils.ts index e4104fd..f685609 100644 --- a/utils.ts +++ b/utils.ts @@ -297,6 +297,10 @@ export async function runInRepo(options: RunOptions & RepoOptions) { ...localOverrides, } } + // override Vitest so that it's compatible with Vite 6 + if (options.viteMajor >= 6 && options.repo !== 'vitest-dev/vitest') { + overrides.vitest = '2.2.0-beta.1' + } await applyPackageOverrides(dir, pkg, overrides) await beforeBuildCommand?.(pkg.scripts) await buildCommand?.(pkg.scripts)