Add pnpm-lock.yaml support#15
Open
ejntaylor wants to merge 1 commit into
Open
Conversation
Vibe-coded apps from platforms like v0/Bolt/Lovable often ship with pnpm-lock.yaml, which the connector previously rejected with LOCKFILE_UNSUPPORTED. This adds a zero-dep parser that handles every common pnpm lockfile format (v5 slash-separated, v6-v8 leading-slash with `@`, v9 unquoted/quoted keys with `(peer)` suffixes) and marks direct dependencies from either `importers:` (v9) or top-level dependency sections (v6-v8 single-project lockfiles). Detection routes pnpm before yarn so an in-progress yarn migration with both lockfiles present still works. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Contributor
Author
|
/review |
|
Migration covering the required updates. 🎯 Quality: 70% Good · 📦 Size: Oversized — strongly consider breaking this down 📈 This month: Your 53rd PR — above team average · Averaging Good |
5 tasks
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.
Summary
pnpm-lock.yamlso projects using pnpm (common output of v0, Bolt, Lovable, and other vibe-coding platforms) can scan with@patchstack/connectinstead of hittingLOCKFILE_UNSUPPORTED./pkg/1.0.0), v6–v8 leading-slash with@and(peer)suffix, and v9 unquoted/quoted keys.importers:(v9) or top-leveldependencies/devDependencies/optionalDependencies(v6–v8 single-project lockfiles). Best-effort: transitive packages are reported but not flagged as direct, matching the npm parser's behaviour.package-lock.jsoncontinues to win when both are present (verified by test).DetectionStrategyunion already have slots for it, so wiring it up is a follow-up of the same shape.Test plan
npm run typecheck— cleannpm test— 67/67 pass (16 new pnpm tests)npm run build— bundles updated dist/npx @patchstack/connect scan --dry-runin a real pnpm-scaffolded project (e.g. a v0/Bolt export) and confirm the payload lists every package🤖 Generated with Claude Code