mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-24 23:51:48 +00:00
refactor: finalize plugin sdk legacy boundary cleanup
This commit is contained in:
@@ -84,7 +84,7 @@ function loadMonolithicSdk() {
|
||||
|
||||
const jiti = getJiti();
|
||||
|
||||
const distCandidate = path.resolve(__dirname, "..", "..", "dist", "plugin-sdk", "index.js");
|
||||
const distCandidate = path.resolve(__dirname, "..", "..", "dist", "plugin-sdk", "compat.js");
|
||||
if (fs.existsSync(distCandidate)) {
|
||||
try {
|
||||
monolithicSdk = jiti(distCandidate);
|
||||
@@ -94,7 +94,7 @@ function loadMonolithicSdk() {
|
||||
}
|
||||
}
|
||||
|
||||
monolithicSdk = jiti(path.join(__dirname, "index.ts"));
|
||||
monolithicSdk = jiti(path.join(__dirname, "compat.ts"));
|
||||
return monolithicSdk;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user