diff --git a/scripts/run-node.mjs b/scripts/run-node.mjs index 33317ae8797..0a33706d00f 100644 --- a/scripts/run-node.mjs +++ b/scripts/run-node.mjs @@ -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; };