From 5fb34575309b8f7a8a5aa78d6ffea2ec77b537ca Mon Sep 17 00:00:00 2001 From: cl Date: Tue, 24 Nov 2026 11:16:30 +0800 Subject: [PATCH] . --- tsconfig.json | 3 +-- vite.config.js | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index fb10c5f..44979da 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -21,7 +21,6 @@ "lib/ui.js", "lib/ui", "lib/utility.js", - "lib/utility", - "sample/*.ts" + "lib/utility" ] } \ No newline at end of file diff --git a/vite.config.js b/vite.config.js index 9eb81c4..8c2269b 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,5 +1,5 @@ import { defineConfig } from 'vite'; -export default defineConfig({ - root: 'sample' -}) \ No newline at end of file +export default defineConfig(env => ({ + root: env.command === 'serve' ? 'sample' : undefined +})) \ No newline at end of file