mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-26 20:35:39 -06:00
fix(e2e): use packaged CLI in git fixtures (#126383)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user