From c186eb24ec93194f79ef5250feea427e5f3d065c Mon Sep 17 00:00:00 2001 From: zhi Date: Sun, 8 Mar 2026 12:02:11 +0000 Subject: [PATCH] fix: copy package.json to install dest for npm install --- install.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.mjs b/install.mjs index dcd5957..a420eb3 100755 --- a/install.mjs +++ b/install.mjs @@ -161,8 +161,9 @@ async function install() { if (existsSync(destDir)) rmSync(destDir, { recursive: true, force: true }); copyDir(SRC_DIST_DIR, destDir); - // Copy openclaw.plugin.json + // Copy openclaw.plugin.json and package.json copyFileSync(join(__dirname, 'plugin', 'openclaw.plugin.json'), join(destDir, 'openclaw.plugin.json')); + copyFileSync(join(__dirname, 'plugin', 'package.json'), join(destDir, 'package.json')); logOk(`Plugin files → ${destDir}`); // Install runtime deps into dest (express, ws)