javascript_node_modules

Assemble one workspace member's dependency closure from verified package fetches and completed dependency builds. javascript_dependencies generates these targets with the native lockfile's edges and a deterministic layout plan.

The root target is node_modules. A member at packages/a gets packages+a.node_modules. A javascript_build can depend on that member target to start as soon as its closure is ready, even while unrelated packages are downloading.

The javascript_dependency_set provider supplies the assembled project root, original workspace source root, package-manager metadata and workspace bin paths. Layouts use relative links and omit volatile native installer state. Berry receives a deterministic relative locator map for native binary discovery. pnpm keeps isolated peer snapshots; npm and Bun retain locked install paths; Yarn uses a deterministic hoister with documented native-parity limits.

Member layouts emitted by one dependency owner share an installation identity. Builds may stage exported products between these compatible member layouts without waiting for the aggregate owner. Layouts from different owners do not share that identity. The resolver-owned _installation attribute carries it; consumers should not set that attribute themselves.

See the JavaScript workspace contract for supported formats, affected-test behavior and experimental limitations.