fix(gateway): remove watch-mode build/start race (#18782)

This commit is contained in:
Josh Avant
2026-02-16 18:24:08 -08:00
committed by GitHub
parent 4b8f53979e
commit 81741c37fd
4 changed files with 169 additions and 65 deletions

View File

@@ -8,7 +8,7 @@ import { pathToFileURL } from "node:url";
const compiler = "tsdown";
const compilerArgs = ["exec", compiler, "--no-clean"];
const gitWatchedPaths = ["src", "tsconfig.json", "package.json"];
export const runNodeWatchedPaths = ["src", "tsconfig.json", "package.json"];
const statMtime = (filePath, fsImpl = fs) => {
try {
@@ -91,7 +91,7 @@ const resolveGitHead = (deps) => {
const hasDirtySourceTree = (deps) => {
const output = runGit(
["status", "--porcelain", "--untracked-files=normal", "--", ...gitWatchedPaths],
["status", "--porcelain", "--untracked-files=normal", "--", ...runNodeWatchedPaths],
deps,
);
if (output === null) {