Skip to content

Commit bf5de42

Browse files
Merge pull request #45 from browserstack/fix/webdriverio-peer-to-dep
fix: declare webdriverio as a dependency, not a peer (install parity)
2 parents bf66b27 + 7306121 commit bf5de42

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@wdio/browserstack-service": patch
3+
---
4+
5+
Declare `webdriverio` as a dependency instead of a peerDependency, matching the package published from the WebdriverIO monorepo. The extraction had moved `webdriverio` into `peerDependencies` (`^9.0.0`); npm then forced the consumer's `webdriverio` to `^9`, which conflicts with any project that also depends on a package peering `webdriverio@"^7 || ^8"` (e.g. `wdio-chromedriver-service@^8`) and surfaced as an `npm ERESOLVE` on install — a failure the monorepo-published package never had. Restores install parity with the upstream package; no user-facing API change.

package-lock.json

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

packages/browserstack-service/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@
7272
"yauzl": "^3.4.0",
7373
"@wdio/logger": "^9.0.0",
7474
"@wdio/reporter": "^9.0.0",
75-
"@wdio/types": "^9.0.0"
75+
"@wdio/types": "^9.0.0",
76+
"webdriverio": "^9.0.0"
7677
},
7778
"peerDependencies": {
78-
"@wdio/cli": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0",
79-
"webdriverio": "^9.0.0"
79+
"@wdio/cli": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0"
8080
},
8181
"devDependencies": {
8282
"@bufbuild/buf": "^1.55.1",

0 commit comments

Comments
 (0)