| @@ -6,10 +6,12 @@ import tailwindcss from "@tailwindcss/vite"; · 5 unmodified lines |
| 6 | import { tanstackRouter } from "@tanstack/router-plugin/vite"; | 6 | import { tanstackRouter } from "@tanstack/router-plugin/vite"; |
| 7 | import executorVitePlugin from "@executor-js/vite-plugin"; | 7 | import executorVitePlugin from "@executor-js/vite-plugin"; |
| 8 | | 8 | |
| | 9 | // oxlint-disable-next-line executor/no-json-parse -- boundary: Vite config reads package metadata from package.json |
| 9 | const rootPackage = JSON.parse( | 10 | const rootPackage = JSON.parse( |
| 10 | readFileSync(new URL("../../package.json", import.meta.url), "utf8"), | 11 | readFileSync(new URL("../../package.json", import.meta.url), "utf8"), |
| 11 | ) as { version: string; homepage?: string; repository?: string | { url?: string } }; | 12 | ) as { version: string; homepage?: string; repository?: string | { url?: string } }; |
| 12 | | 13 | |
| | 14 | // oxlint-disable-next-line executor/no-json-parse -- boundary: Vite config reads package metadata from package.json |
| 13 | const cliPackage = JSON.parse( | 15 | const cliPackage = JSON.parse( |
| 14 | readFileSync(new URL("../cli/package.json", import.meta.url), "utf8"), | 16 | readFileSync(new URL("../cli/package.json", import.meta.url), "utf8"), |
| 15 | ) as { version?: string }; | 17 | ) as { version?: string }; |
| @@ -43,6 +45,7 @@ function executorApiPlugin(): Plugin { · 27 unmodified lines |
| 43 | | 45 | |
| 44 | if (!isApi && !isMcp) return next(); | 46 | if (!isApi && !isMcp) return next(); |
| 45 | | 47 | |
| | 48 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: Vite middleware must convert handler failures into HTTP 500 responses |
| 46 | try { | 49 | try { |
| 47 | if (!handlers) { | 50 | if (!handlers) { |
| 48 | const { getServerHandlers } = await import("./src/server/main"); | 51 | const { getServerHandlers } = await import("./src/server/main"); |