@wdio/cli 8.24.16 → 8.25.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/commands/run.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAMjC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAEtD,eAAO,MAAM,OAAO,qBAAqB,CAAA;AAEzC,eAAO,MAAM,IAAI,yEAAyE,CAAA;AAa1F,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCA6FI,MAAM;;;;;CAQpB,CAAA;AAEV,eAAO,MAAM,OAAO,UAAW,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAVX,MAAM;;;;;GAqB7B,CAAA;AAED,wBAAgB,eAAe,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,mBAAmB,CAAC,QAczF;AAED,wBAAsB,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,mBAAmB,CAAC,iBAgBtF;AAMD,wBAAsB,OAAO,CAAC,IAAI,EAAE,mBAAmB,yBAqFtD"}
1
+ {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/commands/run.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAMjC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAEtD,eAAO,MAAM,OAAO,qBAAqB,CAAA;AAEzC,eAAO,MAAM,IAAI,yEAAyE,CAAA;AAa1F,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCA6FI,MAAM;;;;;CAQpB,CAAA;AAEV,eAAO,MAAM,OAAO,UAAW,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAVX,MAAM;;;;;GAqB7B,CAAA;AAED,wBAAgB,eAAe,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,mBAAmB,CAAC,QAczF;AAED,wBAAsB,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,mBAAmB,CAAC,iBAgBtF;AAYD,wBAAsB,OAAO,CAAC,IAAI,EAAE,mBAAmB,yBAqFtD"}
@@ -163,8 +163,14 @@ export async function launch(wdioConfPath, params) {
163
163
  }
164
164
  });
165
165
  }
166
- function nodeMajorVersion() {
167
- return process.versions.node.split('.').map(Number)[0];
166
+ var NodeVersion;
167
+ (function (NodeVersion) {
168
+ NodeVersion[NodeVersion["major"] = 0] = "major";
169
+ NodeVersion[NodeVersion["minor"] = 1] = "minor";
170
+ NodeVersion[NodeVersion["patch"] = 2] = "patch";
171
+ })(NodeVersion || (NodeVersion = {}));
172
+ function nodeVersion(type) {
173
+ return process.versions.node.split('.').map(Number)[NodeVersion[type]];
168
174
  }
169
175
  export async function handler(argv) {
170
176
  const { configPath = 'wdio.conf.js', ...params } = argv;
@@ -190,8 +196,8 @@ export async function handler(argv) {
190
196
  NODE_OPTIONS?.includes('ts-node/esm'));
191
197
  if (isTSFile && !runsWithLoader && nodePath) {
192
198
  NODE_OPTIONS += ' --loader ts-node/esm/transpile-only --no-warnings';
193
- if (nodeMajorVersion() >= 20) {
194
- // Changes in Node 20 affect how TS Node works with source maps, hence the need for this workaround. See:
199
+ if (nodeVersion('major') >= 20 || (nodeVersion('major') === 18 && nodeVersion('minor') >= 19)) {
200
+ // Changes in Node 18.19 (and up) and Node 20 affect how TS Node works with source maps, hence the need for this workaround. See:
195
201
  // - https://github.com/webdriverio/webdriverio/issues/10901
196
202
  // - https://github.com/TypeStrong/ts-node/issues/2053
197
203
  NODE_OPTIONS += ' -r ts-node/register';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/cli",
3
- "version": "8.24.16",
3
+ "version": "8.25.0",
4
4
  "description": "WebdriverIO testrunner command line interface",
5
5
  "author": "Christian Bromann <mail@bromann.dev>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-cli",
@@ -82,5 +82,5 @@
82
82
  "publishConfig": {
83
83
  "access": "public"
84
84
  },
85
- "gitHead": "04fef7969ac504ad1f31766ef8a87775acc4fff1"
85
+ "gitHead": "e1fab2fdeed37d7e2c3b6f76aaa59020136c8789"
86
86
  }