Skip to content

Migrate to wp-env v11, require Node 20+, remove lock files#6

Merged
dd32 merged 3 commits intotrunkfrom
fix/claude/wp-env-v11-node-20-min
Mar 2, 2026
Merged

Migrate to wp-env v11, require Node 20+, remove lock files#6
dd32 merged 3 commits intotrunkfrom
fix/claude/wp-env-v11-node-20-min

Conversation

@dd32
Copy link
Owner

@dd32 dd32 commented Mar 2, 2026

Summary

  • Bumps @wordpress/env from ^10 to ^11
  • Adds engines.node >= 20 to package.json
  • Removes package-lock.json from the repo and adds lock files to .gitignore
  • Updates CI to use npm install instead of npm ci (no lock file)

Test plan

  • CI passes with wp-env v11
  • npm install works locally on Node 20+

Generated with Claude Code

dd32 and others added 3 commits March 2, 2026 15:47
- Bump @wordpress/env from ^10 to ^11
- Add engines.node >= 20 to package.json
- Remove package-lock.json and add lock files to .gitignore
- Update CI to use npm install instead of npm ci

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Use cli container instead of tests-cli (removed in v11)
- Remove env.tests section from .wp-env.json
- Auto-detect test library path (/wordpress-phpunit or /tmp/wordpress-tests-lib)
- Use --legacy-peer-deps for wp-scripts peer dep on wp-env ^10

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Required when using --legacy-peer-deps since peer deps of
@testing-library/react are not auto-installed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dd32 dd32 merged commit a2f7fd2 into trunk Mar 2, 2026
3 checks passed
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