mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 14:50:45 +00:00
fix(plugins): keep qa sdk aliases private
This commit is contained in:
@@ -232,6 +232,9 @@ ln -sfnT "$openclaw_package_dir/dist" /app/dist
|
||||
cp "$openclaw_package_dir/package.json" /app/package.json
|
||||
rm -rf "$openclaw_package_dir/extensions"
|
||||
ln -sfnT /app/extensions "$openclaw_package_dir/extensions"
|
||||
mkdir -p /app/node_modules/@openclaw
|
||||
rm -rf /app/node_modules/@openclaw/qa-channel
|
||||
ln -sfnT /app/extensions/qa-channel /app/node_modules/@openclaw/qa-channel
|
||||
node --input-type=module <<'NODE'
|
||||
import fs from "node:fs";
|
||||
|
||||
@@ -241,14 +244,6 @@ for (const packageJsonPath of [
|
||||
]) {
|
||||
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",
|
||||
};
|
||||
if (!pkg.exports["./plugin-sdk/gateway-runtime"]) {
|
||||
pkg.exports["./plugin-sdk/gateway-runtime"] = {
|
||||
types: "./dist/plugin-sdk/gateway-runtime.d.ts",
|
||||
|
||||
Reference in New Issue
Block a user