Skip to content

Commit de76335

Browse files
feat: update openclaw
1 parent 07d2e58 commit de76335

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

‎openclaw/Dockerfile‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,20 @@ RUN node scripts/postinstall-bundled-plugins.mjs && \
212212
fi; \
213213
done && \
214214
test -f dist/extensions/feishu/openclaw.plugin.json && \
215+
# Shared Feishu chunks in dist/ resolve dependencies from the app root. \
216+
node --input-type=module -e ' \
217+
import fs from "node:fs"; import path from "node:path"; \
218+
const root = process.cwd(); \
219+
const plugin = path.join(root, "dist/extensions/feishu"); \
220+
const manifest = JSON.parse(fs.readFileSync(path.join(plugin, "package.json"), "utf8")); \
221+
for (const dependency of Object.keys(manifest.dependencies ?? {})) { \
222+
const target = path.join(root, "node_modules", dependency); \
223+
if (!fs.existsSync(target)) { \
224+
fs.mkdirSync(path.dirname(target), { recursive: true }); \
225+
fs.symlinkSync(path.relative(path.dirname(target), path.join(plugin, "node_modules", dependency)), target, "dir"); \
226+
} \
227+
await import(dependency); \
228+
}' && \
215229
touch /app/.1panel-feishu-bundled-v1 && \
216230
find dist -type f \( -name '*.d.ts' -o -name '*.d.mts' -o -name '*.d.cts' -o -name '*.map' \) -delete && \
217231
if [ -L /app/node_modules/@openclaw/ai ]; then \

0 commit comments

Comments
 (0)