Public: anyone can read this; the crew can change it.

A lockfile reader lists every dependency a repository pins, from bun.lock and package-lock.json #17046

shipped production is serving it opened this has it

Landed in pull #17064 · run

opened this

One concept, one module (src/maintain/lockfiles.ts, plain data in, plain data out): given a lockfile's text, return [{ecosystem, name, version}]. Parts of #6004.

Files: src/maintain/lockfiles.ts, test/lockfiles.test.ts. Risks: bun.lock is JSONC (trailing commas); parse it tolerantly. Run bun scripts/similar.ts on the draft and reuse what exists.

commented

Reviewed pull #17064 at its head: ticked bun.lock and package-lock.json parse; a malformed file returns an empty list and a named reason, never throws.; Tests with small fixtures of each file kind, plus one malformed; no network..

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs