# `javascript_lockfile`

Emit proposed native JavaScript lock bytes as a build output without
changing the workspace's source lockfile.

Experimental pnpm update mode emits one selected lock per member and a
merged `js.lockfile` target. The member layout depends on its selected lock,
not on the merged workspace lock, so unrelated metadata acquisition does not
delay a ready member. Metadata producers remain explicit dependencies.

The merged lock rejects conflicting shared entries and retains the original
bytes when its meaning is unchanged. It also emits `source-proposal.json`,
recording the observed source SHA256 or explicit absence and the proposed
output's BLAKE3 digest. Applying this proposal requires a separate authorized
source transaction; a build or cache restoration does not perform that update.

When declaring this target directly, `source` is the package-relative native
lock destination. `source_digest` is its observed raw-byte SHA256, or an empty
string for an absent source. Nonempty digests must contain 64 hexadecimal
digits; destinations must be contained, normalized relative paths. Without
`source`, no proposal is emitted. See the
[JavaScript resolution contract](/reference/modules/#javascript-resolution-callbacks).
