[nexus] fix: use tsx/cli exports subpath instead of deep import (fixes ERR_PACKAGE_PATH_NOT_EXPORTED)
This commit is contained in:
parent
4c8cfcd851
commit
2e7a273687
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ import { fileURLToPath } from "node:url";
|
||||||
import { resolveServerDevWatchIgnorePaths } from "../src/dev-watch-ignore.ts";
|
import { resolveServerDevWatchIgnorePaths } from "../src/dev-watch-ignore.ts";
|
||||||
|
|
||||||
const require = createRequire(import.meta.url);
|
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 serverRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
|
||||||
const ignoreArgs = resolveServerDevWatchIgnorePaths(serverRoot).flatMap((ignorePath) => ["--exclude", ignorePath]);
|
const ignoreArgs = resolveServerDevWatchIgnorePaths(serverRoot).flatMap((ignorePath) => ["--exclude", ignorePath]);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue