@wdio/cli 8.0.0-alpha.249 → 8.0.0-alpha.327
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":"config.d.ts","sourceRoot":"","sources":["../../src/commands/config.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAcjC,OAAO,KAAK,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAErE,eAAO,MAAM,OAAO,WAAW,CAAA;AAC/B,eAAO,MAAM,IAAI,4EAA4E,CAAA;AAE7F,eAAO,MAAM,OAAO;;;;;;;;;;;;CAYV,CAAA;AAEV,eAAO,MAAM,OAAO,UAAW,IAAI;;;;;;;;;;;;GAKlC,CAAA;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/commands/config.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAcjC,OAAO,KAAK,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAErE,eAAO,MAAM,OAAO,WAAW,CAAA;AAC/B,eAAO,MAAM,IAAI,4EAA4E,CAAA;AAE7F,eAAO,MAAM,OAAO;;;;;;;;;;;;CAYV,CAAA;AAEV,eAAO,MAAM,OAAO,UAAW,IAAI;;;;;;;;;;;;GAKlC,CAAA;AA6MD,wBAAgB,OAAO,CAAC,IAAI,EAAE,sBAAsB;;;;;;;;GAEnD;AAED;;;;;;GAMG;AACH,wBAAsB,0BAA0B,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,UAAQ,EAAE,YAAY;;;;;;;;EAAY;;;;;;;;GA4B3H"}
|
package/build/commands/config.js
CHANGED
|
@@ -26,6 +26,7 @@ export const builder = (yargs) => {
|
|
|
26
26
|
.epilogue(CLI_EPILOGUE)
|
|
27
27
|
.help();
|
|
28
28
|
};
|
|
29
|
+
const VERSION_REGEXP = /(\d+)\.(\d+)\.(\d+)-(alpha|beta|)\.(\d+)\+(.+)/g;
|
|
29
30
|
const runConfig = async function (useYarn, yes, exit = false) {
|
|
30
31
|
console.log(CONFIG_HELPER_INTRO);
|
|
31
32
|
const answers = await getAnswers(yes);
|
|
@@ -119,12 +120,14 @@ const runConfig = async function (useYarn, yes, exit = false) {
|
|
|
119
120
|
addServiceDeps(servicePackages, packagesToInstall);
|
|
120
121
|
/**
|
|
121
122
|
* ensure wdio packages have the same dist tag as cli
|
|
123
|
+
* running `matchAll` to a version like "8.0.0-alpha.249+4bc237701", results in:
|
|
124
|
+
* ['8.0.0-alpha.249+4bc237701', '8', '0', '0', 'alpha', '249', '4bc237701']
|
|
122
125
|
*/
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
? `${p}
|
|
126
|
+
const { value } = pkg.version.matchAll(VERSION_REGEXP).next();
|
|
127
|
+
if (value) {
|
|
128
|
+
const nextVersion = value.slice(0, -1); // drop commit bit
|
|
129
|
+
packagesToInstall = packagesToInstall.map((p) => (p.startsWith('@wdio') || ['devtools', 'webdriver', 'webdriverio'].includes(p))
|
|
130
|
+
? `${p}@^${nextVersion}`
|
|
128
131
|
: p);
|
|
129
132
|
}
|
|
130
133
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/cli",
|
|
3
|
-
"version": "8.0.0-alpha.
|
|
3
|
+
"version": "8.0.0-alpha.327+9e6d91918",
|
|
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",
|
|
@@ -41,25 +41,25 @@
|
|
|
41
41
|
"@types/lodash.union": "^4.6.7",
|
|
42
42
|
"@types/recursive-readdir": "^2.2.1",
|
|
43
43
|
"@types/yargs": "^17.0.10",
|
|
44
|
-
"@wdio/config": "8.0.0-alpha.
|
|
45
|
-
"@wdio/globals": "8.0.0-alpha.
|
|
46
|
-
"@wdio/logger": "8.0.0-alpha.
|
|
47
|
-
"@wdio/protocols": "8.0.0-alpha.
|
|
48
|
-
"@wdio/types": "8.0.0-alpha.
|
|
49
|
-
"@wdio/utils": "8.0.0-alpha.
|
|
44
|
+
"@wdio/config": "8.0.0-alpha.327+9e6d91918",
|
|
45
|
+
"@wdio/globals": "8.0.0-alpha.327+9e6d91918",
|
|
46
|
+
"@wdio/logger": "8.0.0-alpha.327+9e6d91918",
|
|
47
|
+
"@wdio/protocols": "8.0.0-alpha.327+9e6d91918",
|
|
48
|
+
"@wdio/types": "8.0.0-alpha.327+9e6d91918",
|
|
49
|
+
"@wdio/utils": "8.0.0-alpha.327+9e6d91918",
|
|
50
50
|
"async-exit-hook": "^2.0.1",
|
|
51
51
|
"chalk": "^5.0.1",
|
|
52
52
|
"chokidar": "^3.5.3",
|
|
53
53
|
"cli-spinners": "^2.6.1",
|
|
54
54
|
"ejs": "^3.1.8",
|
|
55
55
|
"fs-extra": "^10.1.0",
|
|
56
|
-
"inquirer": "9.1.
|
|
56
|
+
"inquirer": "9.1.1",
|
|
57
57
|
"lodash.flattendeep": "^4.4.0",
|
|
58
58
|
"lodash.pickby": "^4.6.0",
|
|
59
59
|
"lodash.union": "^4.6.0",
|
|
60
60
|
"mkdirp": "^1.0.4",
|
|
61
61
|
"recursive-readdir": "^2.2.2",
|
|
62
|
-
"webdriverio": "8.0.0-alpha.
|
|
62
|
+
"webdriverio": "8.0.0-alpha.327+9e6d91918",
|
|
63
63
|
"yargs": "^17.5.1",
|
|
64
64
|
"yarn-install": "^1.0.0"
|
|
65
65
|
},
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@types/node": "^18.0.0"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "9e6d919187b099126ba2dae802791c659fc9c794"
|
|
73
73
|
}
|