From e208697c8e772e01b62797e29ae808ba40aa3a7c Mon Sep 17 00:00:00 2001 From: Bjorn Lu Date: Thu, 16 Nov 2023 22:39:27 +0800 Subject: [PATCH] feat(create-vite): update templates for vite 5 (#15007) --- packages/create-vite/src/index.ts | 2 +- packages/create-vite/template-lit-ts/package.json | 2 +- packages/create-vite/template-lit/package.json | 2 +- packages/create-vite/template-preact-ts/package.json | 2 +- packages/create-vite/template-preact/package.json | 2 +- packages/create-vite/template-qwik-ts/package.json | 2 +- packages/create-vite/template-qwik/package.json | 2 +- packages/create-vite/template-react-ts/package.json | 4 ++-- packages/create-vite/template-react/package.json | 4 ++-- packages/create-vite/template-solid-ts/package.json | 2 +- packages/create-vite/template-solid/package.json | 2 +- packages/create-vite/template-svelte-ts/package.json | 4 ++-- packages/create-vite/template-svelte/package.json | 4 ++-- packages/create-vite/template-vanilla-ts/package.json | 2 +- packages/create-vite/template-vanilla/package.json | 2 +- packages/create-vite/template-vue-ts/package.json | 4 ++-- packages/create-vite/template-vue/package.json | 4 ++-- 17 files changed, 23 insertions(+), 23 deletions(-) diff --git a/packages/create-vite/src/index.ts b/packages/create-vite/src/index.ts index 20212c337580dd..088c5558d1e920 100755 --- a/packages/create-vite/src/index.ts +++ b/packages/create-vite/src/index.ts @@ -524,7 +524,7 @@ function setupReactSwc(root: string, isTs: boolean) { editFile(path.resolve(root, 'package.json'), (content) => { return content.replace( /"@vitejs\/plugin-react": ".+?"/, - `"@vitejs/plugin-react-swc": "^3.3.2"`, + `"@vitejs/plugin-react-swc": "^3.5.0"`, ) }) editFile( diff --git a/packages/create-vite/template-lit-ts/package.json b/packages/create-vite/template-lit-ts/package.json index ba622d3d0f9f89..5d83d06494133b 100644 --- a/packages/create-vite/template-lit-ts/package.json +++ b/packages/create-vite/template-lit-ts/package.json @@ -13,6 +13,6 @@ }, "devDependencies": { "typescript": "^5.2.2", - "vite": "^5.0.0-beta.18" + "vite": "^5.0.0" } } diff --git a/packages/create-vite/template-lit/package.json b/packages/create-vite/template-lit/package.json index bd7f712e7ce431..4d884e555d6049 100644 --- a/packages/create-vite/template-lit/package.json +++ b/packages/create-vite/template-lit/package.json @@ -12,6 +12,6 @@ "lit": "^3.0.2" }, "devDependencies": { - "vite": "^5.0.0-beta.18" + "vite": "^5.0.0" } } diff --git a/packages/create-vite/template-preact-ts/package.json b/packages/create-vite/template-preact-ts/package.json index 965a3eec895382..20285b69a25e8a 100644 --- a/packages/create-vite/template-preact-ts/package.json +++ b/packages/create-vite/template-preact-ts/package.json @@ -14,6 +14,6 @@ "devDependencies": { "@preact/preset-vite": "^2.6.0", "typescript": "^5.2.2", - "vite": "^5.0.0-beta.18" + "vite": "^5.0.0" } } diff --git a/packages/create-vite/template-preact/package.json b/packages/create-vite/template-preact/package.json index 668339bf2907bb..5956cd6f579312 100644 --- a/packages/create-vite/template-preact/package.json +++ b/packages/create-vite/template-preact/package.json @@ -13,6 +13,6 @@ }, "devDependencies": { "@preact/preset-vite": "^2.6.0", - "vite": "^5.0.0-beta.18" + "vite": "^5.0.0" } } diff --git a/packages/create-vite/template-qwik-ts/package.json b/packages/create-vite/template-qwik-ts/package.json index 6abffeb6870fe6..b48b462541b96b 100644 --- a/packages/create-vite/template-qwik-ts/package.json +++ b/packages/create-vite/template-qwik-ts/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "typescript": "^5.2.2", - "vite": "^5.0.0-beta.18" + "vite": "^4.5.0" }, "dependencies": { "@builder.io/qwik": "^1.2.17" diff --git a/packages/create-vite/template-qwik/package.json b/packages/create-vite/template-qwik/package.json index 6abffeb6870fe6..b48b462541b96b 100644 --- a/packages/create-vite/template-qwik/package.json +++ b/packages/create-vite/template-qwik/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "typescript": "^5.2.2", - "vite": "^5.0.0-beta.18" + "vite": "^4.5.0" }, "dependencies": { "@builder.io/qwik": "^1.2.17" diff --git a/packages/create-vite/template-react-ts/package.json b/packages/create-vite/template-react-ts/package.json index 505b09bc888d7f..482d2c111624fe 100644 --- a/packages/create-vite/template-react-ts/package.json +++ b/packages/create-vite/template-react-ts/package.json @@ -18,11 +18,11 @@ "@types/react-dom": "^18.2.15", "@typescript-eslint/eslint-plugin": "^6.10.0", "@typescript-eslint/parser": "^6.10.0", - "@vitejs/plugin-react": "^4.1.1", + "@vitejs/plugin-react": "^4.2.0", "eslint": "^8.53.0", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-refresh": "^0.4.4", "typescript": "^5.2.2", - "vite": "^5.0.0-beta.18" + "vite": "^5.0.0" } } diff --git a/packages/create-vite/template-react/package.json b/packages/create-vite/template-react/package.json index 695dcd50aef5d5..473c7cde7bd993 100644 --- a/packages/create-vite/template-react/package.json +++ b/packages/create-vite/template-react/package.json @@ -16,11 +16,11 @@ "devDependencies": { "@types/react": "^18.2.37", "@types/react-dom": "^18.2.15", - "@vitejs/plugin-react": "^4.1.1", + "@vitejs/plugin-react": "^4.2.0", "eslint": "^8.53.0", "eslint-plugin-react": "^7.33.2", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-refresh": "^0.4.4", - "vite": "^5.0.0-beta.18" + "vite": "^5.0.0" } } diff --git a/packages/create-vite/template-solid-ts/package.json b/packages/create-vite/template-solid-ts/package.json index 6a0f979ac68226..53fdeb19877d72 100644 --- a/packages/create-vite/template-solid-ts/package.json +++ b/packages/create-vite/template-solid-ts/package.json @@ -13,7 +13,7 @@ }, "devDependencies": { "typescript": "^5.2.2", - "vite": "^5.0.0-beta.18", + "vite": "^5.0.0", "vite-plugin-solid": "^2.7.2" } } diff --git a/packages/create-vite/template-solid/package.json b/packages/create-vite/template-solid/package.json index f8c1f7249bdbd0..57d5f98a654971 100644 --- a/packages/create-vite/template-solid/package.json +++ b/packages/create-vite/template-solid/package.json @@ -12,7 +12,7 @@ "solid-js": "^1.8.5" }, "devDependencies": { - "vite": "^5.0.0-beta.18", + "vite": "^5.0.0", "vite-plugin-solid": "^2.7.2" } } diff --git a/packages/create-vite/template-svelte-ts/package.json b/packages/create-vite/template-svelte-ts/package.json index 212e6e6964d3de..b33b962d697be3 100644 --- a/packages/create-vite/template-svelte-ts/package.json +++ b/packages/create-vite/template-svelte-ts/package.json @@ -10,12 +10,12 @@ "check": "svelte-check --tsconfig ./tsconfig.json" }, "devDependencies": { - "@sveltejs/vite-plugin-svelte": "^3.0.0-next.2", + "@sveltejs/vite-plugin-svelte": "^3.0.0", "@tsconfig/svelte": "^5.0.2", "svelte": "^4.2.3", "svelte-check": "^3.6.0", "tslib": "^2.6.2", "typescript": "^5.2.2", - "vite": "^5.0.0-beta.18" + "vite": "^5.0.0" } } diff --git a/packages/create-vite/template-svelte/package.json b/packages/create-vite/template-svelte/package.json index 055cdfc91a0006..4c558a44cbda6a 100644 --- a/packages/create-vite/template-svelte/package.json +++ b/packages/create-vite/template-svelte/package.json @@ -9,8 +9,8 @@ "preview": "vite preview" }, "devDependencies": { - "@sveltejs/vite-plugin-svelte": "^3.0.0-next.2", + "@sveltejs/vite-plugin-svelte": "^3.0.0", "svelte": "^4.2.3", - "vite": "^5.0.0-beta.18" + "vite": "^5.0.0" } } diff --git a/packages/create-vite/template-vanilla-ts/package.json b/packages/create-vite/template-vanilla-ts/package.json index 13ad7c9d5d9478..f009464b8996e6 100644 --- a/packages/create-vite/template-vanilla-ts/package.json +++ b/packages/create-vite/template-vanilla-ts/package.json @@ -10,6 +10,6 @@ }, "devDependencies": { "typescript": "^5.2.2", - "vite": "^5.0.0-beta.18" + "vite": "^5.0.0" } } diff --git a/packages/create-vite/template-vanilla/package.json b/packages/create-vite/template-vanilla/package.json index 5d28e8267cc3ff..b298f266fe6b8f 100644 --- a/packages/create-vite/template-vanilla/package.json +++ b/packages/create-vite/template-vanilla/package.json @@ -9,6 +9,6 @@ "preview": "vite preview" }, "devDependencies": { - "vite": "^5.0.0-beta.18" + "vite": "^5.0.0" } } diff --git a/packages/create-vite/template-vue-ts/package.json b/packages/create-vite/template-vue-ts/package.json index 02a9c21f387439..b484be89473b92 100644 --- a/packages/create-vite/template-vue-ts/package.json +++ b/packages/create-vite/template-vue-ts/package.json @@ -12,9 +12,9 @@ "vue": "^3.3.8" }, "devDependencies": { - "@vitejs/plugin-vue": "^4.4.1", + "@vitejs/plugin-vue": "^4.5.0", "typescript": "^5.2.2", - "vite": "^5.0.0-beta.18", + "vite": "^5.0.0", "vue-tsc": "^1.8.22" } } diff --git a/packages/create-vite/template-vue/package.json b/packages/create-vite/template-vue/package.json index 3273d0b7db0d9b..414e61083049be 100644 --- a/packages/create-vite/template-vue/package.json +++ b/packages/create-vite/template-vue/package.json @@ -12,7 +12,7 @@ "vue": "^3.3.8" }, "devDependencies": { - "@vitejs/plugin-vue": "^4.4.1", - "vite": "^5.0.0-beta.18" + "@vitejs/plugin-vue": "^4.5.0", + "vite": "^5.0.0" } }