Repository navigation
Theme Build Tools: Declare @wordpress/theme as a peer dependency #85388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
41c31ff
7ce5bb7
fbf223c
f0f5512
1b31743
0b81f9c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -74,11 +74,11 @@ | |
| "@babel/types": "^7.29.7", | ||
| "@jridgewell/remapping": "^2.3.5", | ||
| "@jridgewell/trace-mapping": "^0.3.31", | ||
| "@wordpress/theme": "file:../theme", | ||
| "magic-string": "^0.30.21" | ||
| }, | ||
| "devDependencies": { | ||
| "@types/node": "^24.13.3", | ||
| "@wordpress/theme": "file:../theme", | ||
| "@wordpress/validation-tools": "file:../../tools/validation", | ||
| "esbuild": "^0.27.2", | ||
| "lightningcss": "^1.33.0", | ||
|
|
@@ -89,13 +89,17 @@ | |
| "vitest": "^5.0.3" | ||
| }, | ||
| "peerDependencies": { | ||
| "@wordpress/theme": "^3.0.0 || ^4.0.0", | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like npm still auto-installs the theme through this package, despite the optional declarations in One way to fix that would be to add
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep, I think so. It's a bit annoying how many places now have this so we'll definetely need linting/automation to catch incomplete ranges in future. |
||
| "esbuild": ">=0.27.2 <1.0.0", | ||
| "lightningcss": ">=1.33.0 <2.0.0", | ||
| "postcss": "^8.0.0", | ||
| "stylelint": "^16 || ^17", | ||
| "vite": "^7 || ^8" | ||
| }, | ||
| "peerDependenciesMeta": { | ||
| "@wordpress/theme": { | ||
| "optional": true | ||
| }, | ||
| "esbuild": { | ||
| "optional": true | ||
| }, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.