fix(e2e): use packaged CLI in git fixtures (#126383)

This commit is contained in:
Vincent Koc
2026-08-20 05:00:25 +08:00
committed by GitHub
parent 42a4db5f42
commit ee6cab4a2e
2 changed files with 48 additions and 0 deletions
+5
View File
@@ -43,9 +43,14 @@ function prepare(root) {
ensureDependencyIgnores(root);
const packageJsonPath = path.join(root, "package.json");
const packageJson = readJson(packageJsonPath);
packageJson.scripts = {
...packageJson.scripts,
openclaw: "node openclaw.mjs",
};
const aiRuntimeSource = path.join(root, "node_modules", "@openclaw", "ai");
const aiRuntimePackageJson = path.join(aiRuntimeSource, "package.json");
if (!fs.existsSync(aiRuntimePackageJson)) {
writeJson(packageJsonPath, packageJson);
return;
}