@wdio/cli 8.16.11 → 8.16.12

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;AAE1F,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwFV,CAAA;AAEV,eAAO,MAAM,OAAO,UAAW,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAUlC,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;AAED,wBAAsB,OAAO,CAAC,IAAI,EAAE,mBAAmB,yBA+EtD"}
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;AAE1F,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwFV,CAAA;AAEV,eAAO,MAAM,OAAO,UAAW,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAUlC,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"}
@@ -138,6 +138,9 @@ export async function launch(wdioConfPath, params) {
138
138
  }
139
139
  });
140
140
  }
141
+ function nodeMajorVersion() {
142
+ return process.versions.node.split('.').map(Number)[0];
143
+ }
141
144
  export async function handler(argv) {
142
145
  const { configPath = 'wdio.conf.js', ...params } = argv;
143
146
  const wdioConf = await formatConfigFilePaths(configPath);
@@ -162,6 +165,12 @@ export async function handler(argv) {
162
165
  NODE_OPTIONS?.includes('ts-node/esm'));
163
166
  if (isTSFile && !runsWithLoader && nodePath) {
164
167
  NODE_OPTIONS += ' --loader ts-node/esm/transpile-only --no-warnings';
168
+ if (nodeMajorVersion() >= 20) {
169
+ // Changes in Node 20 affect how TS Node works with source maps, hence the need for this workaround. See:
170
+ // - https://github.com/webdriverio/webdriverio/issues/10901
171
+ // - https://github.com/TypeStrong/ts-node/issues/2053
172
+ NODE_OPTIONS += ' -r ts-node/register';
173
+ }
165
174
  const tsNodeProjectFromEnvVar = process.env.TS_NODE_PROJECT &&
166
175
  path.resolve(process.cwd(), process.env.TS_NODE_PROJECT);
167
176
  const tsNodeProjectFromParams = params.autoCompileOpts?.tsNodeOpts?.project &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/cli",
3
- "version": "8.16.11",
3
+ "version": "8.16.12",
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",
@@ -46,12 +46,12 @@
46
46
  "typeScriptVersion": "3.8.3",
47
47
  "dependencies": {
48
48
  "@types/node": "^20.1.1",
49
- "@wdio/config": "8.16.11",
50
- "@wdio/globals": "8.16.11",
49
+ "@wdio/config": "8.16.12",
50
+ "@wdio/globals": "8.16.12",
51
51
  "@wdio/logger": "8.11.0",
52
52
  "@wdio/protocols": "8.16.5",
53
- "@wdio/types": "8.16.7",
54
- "@wdio/utils": "8.16.11",
53
+ "@wdio/types": "8.16.12",
54
+ "@wdio/utils": "8.16.12",
55
55
  "async-exit-hook": "^2.0.1",
56
56
  "chalk": "^5.2.0",
57
57
  "chokidar": "^3.5.3",
@@ -66,7 +66,7 @@
66
66
  "lodash.union": "^4.6.0",
67
67
  "read-pkg-up": "10.1.0",
68
68
  "recursive-readdir": "^2.2.3",
69
- "webdriverio": "8.16.11",
69
+ "webdriverio": "8.16.12",
70
70
  "yargs": "^17.7.2",
71
71
  "yarn-install": "^1.0.0"
72
72
  },
@@ -83,5 +83,5 @@
83
83
  "publishConfig": {
84
84
  "access": "public"
85
85
  },
86
- "gitHead": "f254aac9e601e0c39f1d046faeccffb0ebbe5cb4"
86
+ "gitHead": "6a010586db579a5019b490172f8ffc3939c9e852"
87
87
  }