create-wdio 8.4.3 → 8.4.5
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/build/index.js +9 -3
- package/package.json +14 -14
package/build/index.js
CHANGED
|
@@ -87,9 +87,15 @@ async function isCLIInstalled(path) {
|
|
|
87
87
|
}
|
|
88
88
|
catch (error) {
|
|
89
89
|
// check of the cli is installed globally
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
// wrap in try/catch as it can fail on Windows
|
|
91
|
+
try {
|
|
92
|
+
const output = execSync('npm ls -g', { encoding: 'utf-8' });
|
|
93
|
+
if (output.includes('@wdio/cli')) {
|
|
94
|
+
return true;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
catch (err) {
|
|
98
|
+
return false;
|
|
93
99
|
}
|
|
94
100
|
return false;
|
|
95
101
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-wdio",
|
|
3
|
-
"version": "8.4.
|
|
3
|
+
"version": "8.4.5",
|
|
4
4
|
"description": "Install and setup a WebdriverIO project with all its dependencies in a single run",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -38,23 +38,23 @@
|
|
|
38
38
|
"watch": "npm run compile -- --watch"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@types/cross-spawn": "^6.0.
|
|
42
|
-
"@types/node": "^20.
|
|
43
|
-
"@types/semver": "^7.5.
|
|
44
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
45
|
-
"@typescript-eslint/parser": "^6.
|
|
46
|
-
"@vitest/coverage-v8": "^
|
|
47
|
-
"eslint": "^8.
|
|
48
|
-
"eslint-plugin-import": "^2.
|
|
49
|
-
"eslint-plugin-unicorn": "^
|
|
41
|
+
"@types/cross-spawn": "^6.0.6",
|
|
42
|
+
"@types/node": "^20.10.5",
|
|
43
|
+
"@types/semver": "^7.5.6",
|
|
44
|
+
"@typescript-eslint/eslint-plugin": "^6.16.0",
|
|
45
|
+
"@typescript-eslint/parser": "^6.16.0",
|
|
46
|
+
"@vitest/coverage-v8": "^1.1.0",
|
|
47
|
+
"eslint": "^8.56.0",
|
|
48
|
+
"eslint-plugin-import": "^2.29.1",
|
|
49
|
+
"eslint-plugin-unicorn": "^50.0.1",
|
|
50
50
|
"npm-run-all": "^4.1.5",
|
|
51
|
-
"release-it": "^17.0.
|
|
52
|
-
"typescript": "^5.
|
|
53
|
-
"vitest": "^
|
|
51
|
+
"release-it": "^17.0.1",
|
|
52
|
+
"typescript": "^5.3.3",
|
|
53
|
+
"vitest": "^1.1.0"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"chalk": "^5.3.0",
|
|
57
|
-
"commander": "^11.
|
|
57
|
+
"commander": "^11.1.0",
|
|
58
58
|
"cross-spawn": "^7.0.3",
|
|
59
59
|
"import-meta-resolve": "^4.0.0",
|
|
60
60
|
"semver": "^7.5.4"
|