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