Fix drift check for generated config docs
This commit is contained in:
parent
d25df41a47
commit
73e968eed1
@ -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;
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user