Merge pull request #1949 from vanductai/fix/dev-watch-tsx-cli-path

fix(server): use stable tsx/cli entry point in dev-watch
This commit is contained in:
Dotta authored and GitHub committed 2026-03-28 16:45:04 -05:00
commit 6a72faf83b
1 file changed
+1 -1
+1 -1
View File
@@ -5,7 +5,7 @@ import { fileURLToPath } from "node:url";
import { resolveServerDevWatchIgnorePaths } from "../src/dev-watch-ignore.ts";
const require = createRequire(import.meta.url);
const tsxCliPath = require.resolve("tsx/dist/cli.mjs");
const tsxCliPath = require.resolve("tsx/cli");
const serverRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
const ignoreArgs = resolveServerDevWatchIgnorePaths(serverRoot).flatMap((ignorePath) => ["--exclude", ignorePath]);