fix(gateway): remove watch-mode build/start race (#18782)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user