Fix drift check for generated config docs

This commit is contained in:
Simon Kim 2026-03-21 14:27:25 +09:00
parent d25df41a47
commit 73e968eed1

View File

@ -10,8 +10,13 @@ const buildScript = "scripts/tsdown-build.mjs";
const compilerArgs = [buildScript, "--no-clean"];
const runNodeSourceRoots = ["src", "extensions"];
const runNodeGeneratedRoots = ["docs/.generated"];
const runNodeConfigFiles = ["tsconfig.json", "package.json", "tsdown.config.ts"];
export const runNodeWatchedPaths = [...runNodeSourceRoots, ...runNodeConfigFiles];
export const runNodeWatchedPaths = [
...runNodeSourceRoots,
...runNodeGeneratedRoots,
...runNodeConfigFiles,
];
const extensionSourceFilePattern = /\.(?:[cm]?[jt]sx?)$/;
const extensionRestartMetadataFiles = new Set(["openclaw.plugin.json", "package.json"]);
@ -42,6 +47,9 @@ export const isBuildRelevantRunNodePath = (repoPath) => {
if (normalizedPath.startsWith("extensions/")) {
return isBuildRelevantSourcePath(normalizedPath.slice("extensions/".length));
}
if (normalizedPath.startsWith("docs/.generated/")) {
return true;
}
return false;
};