From 2e7a273687c3c826e2f688200dc718f92c2ce941 Mon Sep 17 00:00:00 2001 From: Mikkel Georgsen Date: Tue, 31 Mar 2026 12:04:43 +0200 Subject: [PATCH] [nexus] fix: use tsx/cli exports subpath instead of deep import (fixes ERR_PACKAGE_PATH_NOT_EXPORTED) --- server/scripts/dev-watch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/scripts/dev-watch.ts b/server/scripts/dev-watch.ts index cfcb7a71..ed0d90d4 100644 --- a/server/scripts/dev-watch.ts +++ b/server/scripts/dev-watch.ts @@ -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"); // [nexus] use exports map subpath, not deep import const serverRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), ".."); const ignoreArgs = resolveServerDevWatchIgnorePaths(serverRoot).flatMap((ignorePath) => ["--exclude", ignorePath]);