From e177d0df17d9369cea250578dfacafbbfeb31be7 Mon Sep 17 00:00:00 2001 From: Kevin Deng Date: Sat, 6 Dec 2025 08:45:36 +0800 Subject: [PATCH] refactor: move vite config to root --- react-compiler/package.json | 2 +- react-compiler/{playground => }/vite.config.ts | 0 react/package.json | 2 +- react/{playground => }/vite.config.ts | 0 solid/package.json | 2 +- solid/{playground => }/vite.config.ts | 4 ++-- svelte/package.json | 2 +- svelte/playground/svelte.config.ts | 2 +- svelte/svelte.config.ts | 2 +- svelte/{playground => }/vite.config.ts | 0 svelte/vitest.config.ts | 2 +- 11 files changed, 9 insertions(+), 9 deletions(-) rename react-compiler/{playground => }/vite.config.ts (100%) rename react/{playground => }/vite.config.ts (100%) rename solid/{playground => }/vite.config.ts (56%) rename svelte/{playground => }/vite.config.ts (100%) diff --git a/react-compiler/package.json b/react-compiler/package.json index 3c288c1..2aac13a 100644 --- a/react-compiler/package.json +++ b/react-compiler/package.json @@ -29,7 +29,7 @@ "scripts": { "build": "tsdown", "dev": "tsdown --watch", - "play": "vite --config playground/vite.config.ts", + "play": "vite", "test": "vitest", "typecheck": "tsc --noEmit", "release": "bumpp && pnpm publish", diff --git a/react-compiler/playground/vite.config.ts b/react-compiler/vite.config.ts similarity index 100% rename from react-compiler/playground/vite.config.ts rename to react-compiler/vite.config.ts diff --git a/react/package.json b/react/package.json index 5c85678..9e66de8 100644 --- a/react/package.json +++ b/react/package.json @@ -29,7 +29,7 @@ "scripts": { "build": "tsdown", "dev": "tsdown --watch", - "play": "vite --config playground/vite.config.ts", + "play": "vite", "test": "vitest", "typecheck": "tsc --noEmit", "release": "bumpp && pnpm publish", diff --git a/react/playground/vite.config.ts b/react/vite.config.ts similarity index 100% rename from react/playground/vite.config.ts rename to react/vite.config.ts diff --git a/solid/package.json b/solid/package.json index b806436..b53ef8a 100644 --- a/solid/package.json +++ b/solid/package.json @@ -33,7 +33,7 @@ "scripts": { "build": "tsdown", "dev": "tsdown --watch", - "play": "vite --config playground/vite.config.ts", + "play": "vite", "test": "vitest", "typecheck": "tsc --noEmit", "release": "bumpp && pnpm publish", diff --git a/solid/playground/vite.config.ts b/solid/vite.config.ts similarity index 56% rename from solid/playground/vite.config.ts rename to solid/vite.config.ts index b8b26c7..34421b1 100644 --- a/solid/playground/vite.config.ts +++ b/solid/vite.config.ts @@ -1,7 +1,7 @@ -import solidPlugin from 'vite-plugin-solid' +import solid from 'vite-plugin-solid' import { defineConfig } from 'vite' export default defineConfig({ root: './playground', - plugins: [solidPlugin()], + plugins: [solid()], }) diff --git a/svelte/package.json b/svelte/package.json index c44b018..3aff439 100644 --- a/svelte/package.json +++ b/svelte/package.json @@ -29,7 +29,7 @@ "scripts": { "build": "tsdown", "dev": "tsdown --watch", - "play": "vite --config playground/vite.config.ts", + "play": "vite", "test": "vitest", "typecheck": "svelte-check --tsconfig ./tsconfig.json", "release": "bumpp && pnpm publish", diff --git a/svelte/playground/svelte.config.ts b/svelte/playground/svelte.config.ts index 09a1bf7..8abe436 100644 --- a/svelte/playground/svelte.config.ts +++ b/svelte/playground/svelte.config.ts @@ -1,5 +1,5 @@ import { vitePreprocess } from '@sveltejs/vite-plugin-svelte' export default { - preprocess: vitePreprocess() + preprocess: vitePreprocess(), } diff --git a/svelte/svelte.config.ts b/svelte/svelte.config.ts index 09a1bf7..8abe436 100644 --- a/svelte/svelte.config.ts +++ b/svelte/svelte.config.ts @@ -1,5 +1,5 @@ import { vitePreprocess } from '@sveltejs/vite-plugin-svelte' export default { - preprocess: vitePreprocess() + preprocess: vitePreprocess(), } diff --git a/svelte/playground/vite.config.ts b/svelte/vite.config.ts similarity index 100% rename from svelte/playground/vite.config.ts rename to svelte/vite.config.ts diff --git a/svelte/vitest.config.ts b/svelte/vitest.config.ts index cbda5b1..b039a50 100644 --- a/svelte/vitest.config.ts +++ b/svelte/vitest.config.ts @@ -2,7 +2,7 @@ import { svelte } from '@sveltejs/vite-plugin-svelte' import { defineConfig } from 'vitest/config' export default defineConfig({ - plugins: [svelte() as any], + plugins: [svelte()], test: { environment: 'jsdom', globals: true, -- 2.51.2