Repository navigation
check-lockfile: pnpm-lock.yaml and yarn.lock; 0.3.0 - #11
Merged
Merged
Conversation
- 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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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