mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-26 13:53:33 +00:00
plugins: avoid peer auto-install dependency bloat (#34017)
* plugins/install: omit peer deps during plugin npm install * tests: assert plugin install omits peer deps * extensions/googlechat: mark openclaw peer optional * extensions/memory-core: mark openclaw peer optional
This commit is contained in:
@@ -126,7 +126,7 @@ export async function installPackageDir(params: {
|
||||
await sanitizeManifestForNpmInstall(params.targetDir);
|
||||
params.logger?.info?.(params.depsLogMessage);
|
||||
const npmRes = await runCommandWithTimeout(
|
||||
["npm", "install", "--omit=dev", "--silent", "--ignore-scripts"],
|
||||
["npm", "install", "--omit=dev", "--omit=peer", "--silent", "--ignore-scripts"],
|
||||
{
|
||||
timeoutMs: Math.max(params.timeoutMs, 300_000),
|
||||
cwd: params.targetDir,
|
||||
|
||||
Reference in New Issue
Block a user