From ebff8ef07af719b2e492cb35695c522483536dec Mon Sep 17 00:00:00 2001 From: Hyunbin <47051820+hyunbinseo@users.noreply.github.com> Date: Sat, 18 Jan 2025 11:18:09 +0900 Subject: [PATCH] chore: update vite and related packages --- .changeset/gold-cougars-report.md | 5 +++++ packages/addons/vitest-addon/index.ts | 2 +- packages/create/templates/demo/package.json | 8 ++++---- packages/create/templates/demo/package.template.json | 6 +++--- packages/create/templates/library/package.template.json | 6 +++--- packages/create/templates/minimal/package.template.json | 6 +++--- 6 files changed, 19 insertions(+), 14 deletions(-) create mode 100644 .changeset/gold-cougars-report.md diff --git a/.changeset/gold-cougars-report.md b/.changeset/gold-cougars-report.md new file mode 100644 index 00000000..46988717 --- /dev/null +++ b/.changeset/gold-cougars-report.md @@ -0,0 +1,5 @@ +--- +'sv': patch +--- + +chore: update `vite@6` and related packages diff --git a/packages/addons/vitest-addon/index.ts b/packages/addons/vitest-addon/index.ts index 6ef6aa2d..4eea7f8d 100644 --- a/packages/addons/vitest-addon/index.ts +++ b/packages/addons/vitest-addon/index.ts @@ -10,7 +10,7 @@ export default defineAddon({ run: ({ sv, typescript }) => { const ext = typescript ? 'ts' : 'js'; - sv.devDependency('vitest', '^2.1.8'); + sv.devDependency('vitest', '^3.0.0'); sv.file('package.json', (content) => { const { data, generateCode } = parseJson(content); diff --git a/packages/create/templates/demo/package.json b/packages/create/templates/demo/package.json index 64baec80..030d67dc 100644 --- a/packages/create/templates/demo/package.json +++ b/packages/create/templates/demo/package.json @@ -11,11 +11,11 @@ "devDependencies": { "@fontsource/fira-mono": "^5.0.0", "@neoconfetti/svelte": "^2.0.0", - "@sveltejs/adapter-auto": "^3", - "@sveltejs/kit": "^2", - "@sveltejs/vite-plugin-svelte": "^4.0.0", + "@sveltejs/adapter-auto": "^4.0.0", + "@sveltejs/kit": "^2.9.0", + "@sveltejs/vite-plugin-svelte": "^5.0.0", "svelte": "^5.0.0", "typescript": "^5.3.3", - "vite": "^5.4.11" + "vite": "^6.0.0" } } diff --git a/packages/create/templates/demo/package.template.json b/packages/create/templates/demo/package.template.json index 55b6c68b..de4347e7 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": "^4.0.0", - "@sveltejs/kit": "^2.0.0", - "@sveltejs/vite-plugin-svelte": "^4.0.0", + "@sveltejs/kit": "^2.9.0", + "@sveltejs/vite-plugin-svelte": "^5.0.0", "svelte": "^5.0.0", - "vite": "^5.4.11" + "vite": "^6.0.0" } } diff --git a/packages/create/templates/library/package.template.json b/packages/create/templates/library/package.template.json index 7e444640..022cfd49 100644 --- a/packages/create/templates/library/package.template.json +++ b/packages/create/templates/library/package.template.json @@ -23,12 +23,12 @@ }, "devDependencies": { "@sveltejs/adapter-auto": "^4.0.0", - "@sveltejs/kit": "^2.0.0", + "@sveltejs/kit": "^2.9.0", "@sveltejs/package": "^2.0.0", - "@sveltejs/vite-plugin-svelte": "^4.0.0", + "@sveltejs/vite-plugin-svelte": "^5.0.0", "publint": "^0.3.2", "svelte": "^5.0.0", "typescript": "^5.3.2", - "vite": "^5.4.11" + "vite": "^6.0.0" } } diff --git a/packages/create/templates/minimal/package.template.json b/packages/create/templates/minimal/package.template.json index bb5bc349..f68ac1db 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": "^4.0.0", - "@sveltejs/kit": "^2.0.0", - "@sveltejs/vite-plugin-svelte": "^4.0.0", + "@sveltejs/kit": "^2.9.0", + "@sveltejs/vite-plugin-svelte": "^5.0.0", "svelte": "^5.0.0", - "vite": "^5.4.11" + "vite": "^6.0.0" } }