Skip to content

check-lockfile: pnpm-lock.yaml and yarn.lock; 0.3.0 - #11

Merged
orcamedia merged 1 commit into
mainfrom
feat/lockfile-pnpm-yarn
Nov 15, 2026
Merged

orcamedia merged 1 commit into
mainfrom
feat/lockfile-pnpm-yarn

Conversation

@orcamedia

Copy link
Copy Markdown
Collaborator

check-lockfile now reads pnpm-lock.yaml (6.0, 9.0) and yarn.lock (Yarn 1 and 2+) with tr/awk/sed/jq, no yq. The commands give the same packages as OpenArtifact's parser from #484 on its real-lockfile fixtures, also with jq 1.6 and mawk. They also trace what pulls a package in, and fall back to oa check --format json for pnpm 5.x and pnpm dev dependencies. The skill says yarn.lock records no dev dependencies. New eval lockfile-pnpm; the lockfile cases score 1.00 with the plugin, mean delta +0.75.

🤖 Generated with Claude Code

- Extraction commands for pnpm-lock.yaml (lockfileVersion 6.0 and 9.0),
  Yarn 2+ and Yarn 1 yarn.lock, with tr, awk, sed and jq only (no yq).
  They give the same 13 packages as OpenArtifact's own parser (#484) on
  its fixtures, real lockfiles of one project generated by pnpm 8 and 9,
  Yarn 1 and Yarn 4; tested with jq 1.6 and mawk too. A pnpm 7 lockfile
  (5.x) yields an empty list rather than wrong names.
- What-pulls-it-in commands for pnpm and yarn, and where Yarn 2+ keeps
  its registry (npmRegistryServer in .yarnrc.yml).
- oa check --format json as the path that reads every lockfile (pnpm 5.x
  and pnpm's dev dependencies included), when the oa CLI is set up.
- yarn.lock records no development dependencies: the skill says so
  instead of claiming to leave them out.
- New eval lockfile-pnpm: GitHub and link dependencies are left out of
  the one batch call, and a minimum-age hold on a transitive package is
  explained with its end date and the direct dependency that pulls it in.
  Lockfile cases with and without the plugin: all 1.00 with it, mean
  delta +0.75 ($1.21).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@orcamedia
orcamedia merged commit fe8bfb2 into main Nov 15, 2026
4 checks passed
@orcamedia
orcamedia deleted the feat/lockfile-pnpm-yarn branch November 15, 2026 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant