wdio-lambdatest-service-sdk 5.1.1 → 5.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -26,19 +26,41 @@ WebdriverIO service and CLI for running Appium and browser tests on [LambdaTest]
26
26
  - **Authentication**: Pass `username` and `accessKey` in the service options or via the CLI.
27
27
  - **Test Status Updates**: Automatically marks tests as Passed/Failed on the LambdaTest dashboard using Lambda Hooks.
28
28
  - **Logs**: Clean, colorful status logs in the terminal.
29
- - **CLI**: Interactive config generator and setup tool (Commander, Chalk, Inquirer; runs with Bun or Node.js).
29
+ - **CLI**: Interactive config generator and setup tool (Commander, Chalk, Inquirer; runs with Node.js or Bun).
30
30
  - **Multi-select**: Choose multiple test types, device types, platforms, and app/website targets in one config.
31
31
 
32
32
  ---
33
33
 
34
34
  ## Installation
35
35
 
36
+ Works with **Node.js** (≥18) or **Bun** (≥1.0). No Bun required.
37
+
36
38
  ```bash
39
+ # With npm (Node.js)
37
40
  npm install wdio-lambdatest-service --save-dev
38
- # or with Bun
41
+
42
+ # With Bun (optional)
39
43
  bun add wdio-lambdatest-service --dev
40
44
  ```
41
45
 
46
+ ### Peer dependency conflict (ERESOLVE)
47
+
48
+ If you see `ERESOLVE unable to resolve dependency tree` because your project uses **WebdriverIO 5 or 6** and the installed package expects a different major version, use one of these:
49
+
50
+ **Option 1 – Install and allow peer mismatch (recommended):**
51
+
52
+ ```bash
53
+ npm install wdio-lambdatest-service --save-dev --legacy-peer-deps
54
+ ```
55
+
56
+ **Option 2 – Force install:**
57
+
58
+ ```bash
59
+ npm install wdio-lambdatest-service --save-dev --force
60
+ ```
61
+
62
+ This package declares support for **@wdio/cli** and **webdriverio** `^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0`. If you are on an older published version of the service that had stricter peer deps, upgrade to the latest version or use `--legacy-peer-deps` until you can upgrade.
63
+
42
64
  ---
43
65
 
44
66
  ## Try the SDK / CLI with the Sample Project
@@ -189,11 +211,11 @@ npm install wdio-lambdatest-service --save-dev
189
211
  ### 2. Run the Config Generator
190
212
 
191
213
  ```bash
192
- # With Bun (recommended)
193
- bun wdio-lt generate
194
-
195
214
  # With Node.js
196
215
  npx wdio-lt generate
216
+
217
+ # With Bun (optional)
218
+ bunx wdio-lt generate
197
219
  ```
198
220
 
199
221
  ### 3. Follow the Prompts
@@ -252,19 +274,21 @@ wdio-lt setup
252
274
  wdio-lt generate
253
275
  ```
254
276
 
255
- ### Running with Bun
277
+ ### Running the CLI
278
+
279
+ **With Node.js** (default; no extra install):
256
280
 
257
281
  ```bash
258
- curl -fsSL https://bun.sh/install | bash # Install Bun
259
- bun wdio-lt setup ./android-sample
260
- bun wdio-lt generate
282
+ npx wdio-lt setup ./android-sample
283
+ npx wdio-lt generate
261
284
  ```
262
285
 
263
- ### Running with Node.js
286
+ **With Bun** (optional; faster):
264
287
 
265
288
  ```bash
266
- npx wdio-lt setup ./android-sample
267
- npx wdio-lt generate
289
+ curl -fsSL https://bun.sh/install | bash # Install Bun
290
+ bunx wdio-lt setup ./android-sample
291
+ bunx wdio-lt generate
268
292
  ```
269
293
 
270
294
  ### Legacy Commands (backward compatible)
@@ -373,8 +397,8 @@ wdio-lambdatest-service/
373
397
 
374
398
  ### Requirements
375
399
 
376
- - **Node.js**: >= 18.0.0
377
- - **Bun**: >= 1.0.0 (optional, for faster CLI)
400
+ - **Node.js**: >= 18.0.0 (required for npm install and default CLI run)
401
+ - **Bun**: >= 1.0.0 (optional; use `bun add` / `bunx wdio-lt` for faster install and run)
378
402
 
379
403
  ---
380
404
 
package/bin/cli.js CHANGED
@@ -1,8 +1,8 @@
1
- #!/usr/bin/env bun
1
+ #!/usr/bin/env node
2
2
  /**
3
3
  * LambdaTest WDIO CLI - Unified command-line interface.
4
4
  * Powered by Commander, Chalk, and Inquirer.
5
- * Runs with Bun (fast) or Node.js.
5
+ * Runs with Node.js or Bun.
6
6
  */
7
7
  const { Command } = require('commander');
8
8
  const chalk = require('chalk');
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env bun
1
+ #!/usr/bin/env node
2
2
  /**
3
3
  * LambdaTest WDIO Config Generator - Backward-compatible entry point.
4
4
  * Delegates to lib/cli/generate.js
package/bin/setup.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env bun
1
+ #!/usr/bin/env node
2
2
  /**
3
3
  * LambdaTest WDIO Setup - Backward-compatible entry point.
4
4
  * Delegates to lib/cli/setup.js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wdio-lambdatest-service-sdk",
3
- "version": "5.1.1",
3
+ "version": "5.1.3",
4
4
  "description": "WebdriverIO service and CLI for LambdaTest Appium & browser automation",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -39,8 +39,12 @@
39
39
  "inquirer": "^13.2.2"
40
40
  },
41
41
  "peerDependencies": {
42
- "@wdio/cli": ">=5.0.0",
43
- "webdriverio": ">=5.0.0"
42
+ "@wdio/cli": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0",
43
+ "webdriverio": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0"
44
+ },
45
+ "peerDependenciesMeta": {
46
+ "@wdio/cli": { "optional": false },
47
+ "webdriverio": { "optional": false }
44
48
  },
45
49
  "engines": {
46
50
  "node": ">=18.0.0",