Skip to content

Commit 60a7a62

Browse files
committed
fix(deps)!: add missing peerDependencies entries
BREAKING CHANGE: Adds missing `peerDependencies`. This adds `peerDependencies` entries for `@swc/core` and `esbuild` at the same versions specified in `devDependencies`. Per the [npm documentation](https://docs.npmjs.com/cli/v9/configuring-npm/package-json\#peerdependenciesmeta), the contents of `peerDependenciesMeta` will be ignored unless those packages also appear in the `peerDependencies` field. For a development environment, these two optional packages will be installed _anyway_ due to their appearance in `devDependencies`. As a result, this change should only affect consumers who have opted-in to installing optional peer dependencies.
1 parent 65c5de0 commit 60a7a62

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package-lock.json

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@
4545
"types"
4646
],
4747
"peerDependencies": {
48-
"webpack": "^5.1.0"
48+
"webpack": "^5.1.0",
49+
"@swc/core": "^1.2.78",
50+
"esbuild": "^0.25.0"
4951
},
5052
"peerDependenciesMeta": {
5153
"@swc/core": {

0 commit comments

Comments
 (0)