mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 16:20:43 +00:00
fix(release): stabilize full validation lanes
This commit is contained in:
@@ -227,6 +227,25 @@ openclaw_package_dir="/npm-global/lib/node_modules/openclaw"
|
||||
# point those imports at the installed package without copying source into the test image.
|
||||
rm -rf /app/node_modules/openclaw
|
||||
ln -sfnT "$openclaw_package_dir" /app/node_modules/openclaw
|
||||
rm -rf /app/dist
|
||||
ln -sfnT "$openclaw_package_dir/dist" /app/dist
|
||||
cp "$openclaw_package_dir/package.json" /app/package.json
|
||||
node --input-type=module <<'NODE'
|
||||
import fs from "node:fs";
|
||||
|
||||
const packageJsonPath = "/app/package.json";
|
||||
const pkg = JSON.parse(fs.readFileSync(packageJsonPath, "utf8"));
|
||||
pkg.exports = pkg.exports && typeof pkg.exports === "object" ? pkg.exports : {};
|
||||
pkg.exports["./plugin-sdk/qa-channel"] = {
|
||||
types: "./extensions/qa-channel/api.ts",
|
||||
default: "./extensions/qa-channel/api.ts",
|
||||
};
|
||||
pkg.exports["./plugin-sdk/qa-channel-protocol"] = {
|
||||
types: "./extensions/qa-channel/src/protocol.ts",
|
||||
default: "./extensions/qa-channel/src/protocol.ts",
|
||||
};
|
||||
fs.writeFileSync(packageJsonPath, `${JSON.stringify(pkg, null, 2)}\n`);
|
||||
NODE
|
||||
for deps_dir in "$openclaw_package_dir/node_modules" /npm-global/lib/node_modules; do
|
||||
[ -d "$deps_dir" ] || continue
|
||||
for dependency_dir in "$deps_dir"/*; do
|
||||
|
||||
Reference in New Issue
Block a user