From 43d0b8f387e023277b4b384c9475530356a81f55 Mon Sep 17 00:00:00 2001
From: Jonny Gerig Meyer <jonny@oddbird.net>
Date: Fri, 8 Sep 2023 09:37:01 -0400
Subject: [PATCH] only one version of vite at a time

---
 package.json   |  2 +-
 vite.config.ts |  1 +
 yarn.lock      | 52 ++++++--------------------------------------------
 3 files changed, 8 insertions(+), 47 deletions(-)

diff --git a/package.json b/package.json
index dd284ece..5b68c2d5 100644
--- a/package.json
+++ b/package.json
@@ -81,7 +81,7 @@
     "vitest": "^0.34.4"
   },
   "resolutions": {
-    "tslib": ">=2"
+    "vite": "<5"
   },
   "yarn-upgrade-all": {
     "ignore": [
diff --git a/vite.config.ts b/vite.config.ts
index d32fdaad..13348810 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -36,6 +36,7 @@ export default defineConfig({
       ],
       all: true,
       skipFull: true,
+      reportOnFailure: true,
     },
   },
 });
diff --git a/yarn.lock b/yarn.lock
index 37aafdec..096c86f1 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -7273,7 +7273,7 @@ __metadata:
   languageName: node
   linkType: hard
 
-"rollup@npm:^3.27.1, rollup@npm:^3.28.0":
+"rollup@npm:^3.27.1":
   version: 3.29.0
   resolution: "rollup@npm:3.29.0"
   dependencies:
@@ -8625,10 +8625,10 @@ __metadata:
   languageName: node
   linkType: hard
 
-"tslib@npm:>=2":
-  version: 2.6.2
-  resolution: "tslib@npm:2.6.2"
-  checksum: 329ea56123005922f39642318e3d1f0f8265d1e7fcb92c633e0809521da75eeaca28d2cf96d7248229deb40e5c19adf408259f4b9640afd20d13aecc1430f3ad
+"tslib@npm:^1.8.1":
+  version: 1.14.1
+  resolution: "tslib@npm:1.14.1"
+  checksum: dbe628ef87f66691d5d2959b3e41b9ca0045c3ee3c7c7b906cc1e328b39f199bb1ad9e671c39025bd56122ac57dfbf7385a94843b1cc07c60a4db74795829acd
   languageName: node
   linkType: hard
 
@@ -9092,7 +9092,7 @@ __metadata:
   languageName: node
   linkType: hard
 
-"vite@npm:^3.0.0 || ^4.0.0, vite@npm:^4.4.9":
+"vite@npm:<5":
   version: 4.4.9
   resolution: "vite@npm:4.4.9"
   dependencies:
@@ -9132,46 +9132,6 @@ __metadata:
   languageName: node
   linkType: hard
 
-"vite@npm:^3.1.0 || ^4.0.0 || ^5.0.0-0":
-  version: 5.0.0-beta.0
-  resolution: "vite@npm:5.0.0-beta.0"
-  dependencies:
-    esbuild: ^0.18.10
-    fsevents: ~2.3.2
-    postcss: ^8.4.27
-    rollup: ^3.28.0
-  peerDependencies:
-    "@types/node": ">= 14"
-    less: "*"
-    lightningcss: ^1.21.0
-    sass: "*"
-    stylus: "*"
-    sugarss: "*"
-    terser: ^5.4.0
-  dependenciesMeta:
-    fsevents:
-      optional: true
-  peerDependenciesMeta:
-    "@types/node":
-      optional: true
-    less:
-      optional: true
-    lightningcss:
-      optional: true
-    sass:
-      optional: true
-    stylus:
-      optional: true
-    sugarss:
-      optional: true
-    terser:
-      optional: true
-  bin:
-    vite: bin/vite.js
-  checksum: b84f6cae13e10ddc9d84b6a63041655dea4cadf166a3680f6bacd09795813c4394b6ec9349cb088d9d4358ce6c931bbe124ca0a13eacdf6b1efd0008e88df0fc
-  languageName: node
-  linkType: hard
-
 "vitefu@npm:^0.2.4":
   version: 0.2.4
   resolution: "vitefu@npm:0.2.4"