fix: opt acpx out of bundled runtime deps · openclaw/openclaw@9914e25
steipete
·
2026-05-22
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -59,17 +59,19 @@ OpenClaw source checkouts use `pnpm-lock.yaml`. The published `openclaw` npm
|
59 | 59 | package and OpenClaw-owned npm plugin packages include `npm-shrinkwrap.json`, |
60 | 60 | npm's publishable dependency lockfile, so package installs use the reviewed |
61 | 61 | transitive dependency graph from the release instead of resolving a fresh graph |
62 | | -at install time. OpenClaw-owned npm plugin packages also publish with explicit |
63 | | -`bundledDependencies`, so their runtime dependency files are carried in the |
64 | | -plugin tarball instead of depending only on install-time resolution. |
| 62 | +at install time. Suitable OpenClaw-owned npm plugin packages can also publish |
| 63 | +with explicit `bundledDependencies`, so their runtime dependency files are |
| 64 | +carried in the plugin tarball instead of depending only on install-time |
| 65 | +resolution. |
65 | 66 | |
66 | 67 | This is a supply-chain hardening measure: |
67 | 68 | |
68 | 69 | - release installs are more reproducible; |
69 | 70 | - transitive dependency updates become visible review surfaces; |
70 | 71 | - the package tarball contains the dependency graph that release validators |
71 | 72 | checked; |
72 | | -- OpenClaw-owned plugin tarballs contain the dependency files from that graph; |
| 73 | +- suitable OpenClaw-owned plugin tarballs contain the dependency files from |
| 74 | + that graph; |
73 | 75 | - `package-lock.json` stays out of the published package, because npm does not |
74 | 76 | treat it as the publishable lock contract. |
75 | 77 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -79,11 +79,11 @@ OpenClaw-owned npm plugin packages can also publish with explicit
|
79 | 79 | name list, removes dev-only workspace metadata from the published package |
80 | 80 | manifest, runs a script-free npm install for package-local runtime |
81 | 81 | dependencies, then packs or publishes the plugin tarball with those dependency |
82 | | -files included. Native-heavy packages can opt out with |
83 | | -`openclaw.release.bundleRuntimeDependencies: false`; those packages still ship |
84 | | -their shrinkwrap, but npm resolves runtime dependencies during install instead |
85 | | -of embedding every platform binary in the plugin tarball. The root `openclaw` |
86 | | -package does not bundle its full dependency tree. |
| 82 | +files included. Native-heavy packages, including Codex and ACP runtimes, opt out |
| 83 | +with `openclaw.release.bundleRuntimeDependencies: false`; those packages still |
| 84 | +ship their shrinkwrap, but npm resolves runtime dependencies during install |
| 85 | +instead of embedding every platform binary in the plugin tarball. The root |
| 86 | +`openclaw` package does not bundle its full dependency tree. |
87 | 87 | |
88 | 88 | Plugins that import `openclaw/plugin-sdk/*` declare `openclaw` as a peer |
89 | 89 | dependency. OpenClaw does not let npm install a separate registry copy of the |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -47,7 +47,8 @@
|
47 | 47 | }, |
48 | 48 | "release": { |
49 | 49 | "publishToClawHub": true, |
50 | | -"publishToNpm": true |
| 50 | +"publishToNpm": true, |
| 51 | +"bundleRuntimeDependencies": false |
51 | 52 | } |
52 | 53 | } |
53 | 54 | } |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。