mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-18 03:30:39 +09:00
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:
commit
6a72faf83b
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");
|
||||||
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
Add a link
Reference in a new issue