Skip to content

Commit c8c795a

Browse files
committed
fix: accept any webpack 5 as the optional peer dependency
The ^5.112.0 peer range added in #235 broke installs that use an older webpack 5 (e.g. NestJS CLI pins [email protected]): npm reports the peer as invalid even though it is optional. Only precompile with minify needs webpack 5.112.0+, and it already throws a clear error otherwise. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013FhutRAVeDugCL2BfYpLty
1 parent 2d6aaec commit c8c795a

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

‎.changeset/peer-webpack-range.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"schema-utils": patch
3+
---
4+
5+
Accept any webpack 5 as the optional peer dependency. Requiring `^5.112.0` broke installs with an older webpack 5, such as NestJS CLI's pinned `[email protected]`. Only `precompile` with `minify` needs webpack 5.112.0 or later, and it reports that when webpack is older.

‎package-lock.json‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"webpack": "^5.112.0"
7676
},
7777
"peerDependencies": {
78-
"webpack": "^5.112.0"
78+
"webpack": "^5.0.0"
7979
},
8080
"peerDependenciesMeta": {
8181
"webpack": {

0 commit comments

Comments
 (0)