From a2dcebab25bf839baaeca3a3ffaff2fc980382da Mon Sep 17 00:00:00 2001 From: Manuel <30698007+manuel3108@users.noreply.github.com> Date: Fri, 20 Dec 2024 19:15:43 +0100 Subject: [PATCH] fix: use `vite@5` (#353) Co-authored-by: CokaKoala <31664583+AdrianGonz97@users.noreply.github.com> --- .changeset/wise-roses-develop.md | 5 +++++ packages/create/templates/demo/package.json | 4 ++-- packages/create/templates/demo/package.template.json | 6 +++--- packages/create/templates/library/package.template.json | 6 +++--- packages/create/templates/minimal/package.template.json | 6 +++--- 5 files changed, 16 insertions(+), 11 deletions(-) create mode 100644 .changeset/wise-roses-develop.md diff --git a/.changeset/wise-roses-develop.md b/.changeset/wise-roses-develop.md new file mode 100644 index 00000000..7ecd0627 --- /dev/null +++ b/.changeset/wise-roses-develop.md @@ -0,0 +1,5 @@ +--- +'sv': patch +--- + +fix: use `vite@5` again due to compatability issues with `vitest@2` (#341) diff --git a/packages/create/templates/demo/package.json b/packages/create/templates/demo/package.json index 2191d27a..ee2084f7 100644 --- a/packages/create/templates/demo/package.json +++ b/packages/create/templates/demo/package.json @@ -13,9 +13,9 @@ "@neoconfetti/svelte": "^2.0.0", "@sveltejs/adapter-auto": "workspace:*", "@sveltejs/kit": "workspace:*", - "@sveltejs/vite-plugin-svelte": "^5.0.0", + "@sveltejs/vite-plugin-svelte": "^4.0.0", "svelte": "^5.0.0", "typescript": "^5.3.3", - "vite": "^6.0.0" + "vite": "^5.4.11" } } diff --git a/packages/create/templates/demo/package.template.json b/packages/create/templates/demo/package.template.json index 05181b75..08538774 100644 --- a/packages/create/templates/demo/package.template.json +++ b/packages/create/templates/demo/package.template.json @@ -12,9 +12,9 @@ "@fontsource/fira-mono": "^5.0.0", "@neoconfetti/svelte": "^2.0.0", "@sveltejs/adapter-auto": "^3.0.0", - "@sveltejs/kit": "^2.9.0", - "@sveltejs/vite-plugin-svelte": "^5.0.0", + "@sveltejs/kit": "^2.0.0", + "@sveltejs/vite-plugin-svelte": "^4.0.0", "svelte": "^5.0.0", - "vite": "^6.0.0" + "vite": "^5.4.11" } } diff --git a/packages/create/templates/library/package.template.json b/packages/create/templates/library/package.template.json index a7810f88..d569abd8 100644 --- a/packages/create/templates/library/package.template.json +++ b/packages/create/templates/library/package.template.json @@ -24,12 +24,12 @@ }, "devDependencies": { "@sveltejs/adapter-auto": "^3.0.0", - "@sveltejs/kit": "^2.9.0", + "@sveltejs/kit": "^2.0.0", "@sveltejs/package": "^2.0.0", - "@sveltejs/vite-plugin-svelte": "^5.0.0", + "@sveltejs/vite-plugin-svelte": "^4.0.0", "publint": "^0.2.0", "svelte": "^5.0.0", "typescript": "^5.3.2", - "vite": "^6.0.0" + "vite": "^5.4.11" } } diff --git a/packages/create/templates/minimal/package.template.json b/packages/create/templates/minimal/package.template.json index 2a74c550..04d95bac 100644 --- a/packages/create/templates/minimal/package.template.json +++ b/packages/create/templates/minimal/package.template.json @@ -10,9 +10,9 @@ }, "devDependencies": { "@sveltejs/adapter-auto": "^3.0.0", - "@sveltejs/kit": "^2.9.0", - "@sveltejs/vite-plugin-svelte": "^5.0.0", + "@sveltejs/kit": "^2.0.0", + "@sveltejs/vite-plugin-svelte": "^4.0.0", "svelte": "^5.0.0", - "vite": "^6.0.0" + "vite": "^5.4.11" } }