Skip to content

feat(cli): auto-include pnpm patches directory in Playwright bundles#1273

Open
hlenke wants to merge 2 commits intomainfrom
feat/auto-include-pnpm-patches
Open

feat(cli): auto-include pnpm patches directory in Playwright bundles#1273
hlenke wants to merge 2 commits intomainfrom
feat/auto-include-pnpm-patches

Conversation

@hlenke
Copy link
Copy Markdown
Member

@hlenke hlenke commented Apr 3, 2026

Summary

  • Automatically includes patches/ directory in Playwright check bundles when using pnpm, preventing pnpm install failures at runtime when patchedDependencies are referenced in the lockfile
  • Only activates when: package manager is pnpm, patches/ directory exists at workspace root, and user hasn't already included it
  • Adds unit tests covering all branches (pnpm/npm/yarn, patches exists/missing, user already includes)

Closes SIM-208

Test plan

  • Unit tests for getAutoIncludes() — 6 new tests all passing
  • Existing util.spec.ts tests still pass (12/12)
  • Existing check-parser.spec.ts tests still pass (44/44)
  • CI checks pass

🤖 Generated with Claude Code

hlenke and others added 2 commits April 3, 2026 18:28
When using pnpm, the CLI now automatically includes the `patches/` directory
in Playwright check bundles if it exists, preventing `pnpm install` failures
at runtime when patched dependencies are referenced in the lockfile.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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