Locked JavaScript packages can be fetched as graph targets
The experimental javascript_dependencies target reads a native JavaScript
lockfile and creates one content-verified fetch target per package, plus a
node_modules layout for each workspace member. A javascript_build can
depend on its member's layout and start while unrelated packages are still
downloading. Fetched packages and layouts use Struo's action cache.
The experimental pnpm, npm v3, Bun text, Yarn Classic and Berry update modes resolve registry dependencies in Starlark through cacheable metadata actions. Settled members can build while unrelated members are still resolving. Updates require an explicit metadata refresh generation and emit a proposed native lock without changing sources. Berry uses Yarn 4.19.0 to encode cache archives after Starlark selects their versions. npm and Bun retain compatible native positions and use nested positions for new choices instead of global hoisting.
The frozen-lock path supports registry packages in pnpm, npm, Yarn Classic,
Yarn Berry committed caches, and Bun text locks. It writes relative bin links
instead of checkout-specific pnpm shims. Builds emit source proposals with
manifest and workspace-discovery guards; apply native lock updates explicitly
with struo edit sources. Registry observations require a local cache or a
shared filesystem object store with atomic conditional creation. Lifecycle
builds, patches, private registry authentication and full native peer/linker
parity remain outside this experimental path. Unsupported features need the
native installer. See the module reference
for the supported formats and current limits.
Existing host-installed JavaScript test, lint, Nx and Turbo inputs also omit
volatile installer state and tool caches inside node_modules, including
.modules.yaml, .pnpm-workspace-state*.json, .vite and .cache.