create-wdio 7.0.3 ā 7.1.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.
- package/build/index.js +2 -2
- package/package.json +3 -3
package/build/index.js
CHANGED
|
@@ -88,11 +88,11 @@ async function createWebdriverIO(opts) {
|
|
|
88
88
|
if (await (0, utils_1.exists)(pkgJsonPath)) {
|
|
89
89
|
console.log('Adding scripts to package.json');
|
|
90
90
|
const pkgJson = require(pkgJsonPath);
|
|
91
|
-
const isUsingTypescript = await (0, utils_1.exists)('wdio.conf.ts');
|
|
91
|
+
const isUsingTypescript = await (0, utils_1.exists)('test/wdio.conf.ts');
|
|
92
92
|
if (!pkgJson.scripts) {
|
|
93
93
|
pkgJson.scripts = {};
|
|
94
94
|
}
|
|
95
|
-
pkgJson.scripts['wdio'] = `wdio run
|
|
95
|
+
pkgJson.scripts['wdio'] = `wdio run ${isUsingTypescript ? 'test/wdio.conf.ts' : 'wdio.conf.js'}`;
|
|
96
96
|
await fs_1.default.promises.writeFile(pkgJsonPath, JSON.stringify(pkgJson, null, 4));
|
|
97
97
|
}
|
|
98
98
|
console.log(`\nš¤ Successfully setup project at ${root} š`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-wdio",
|
|
3
|
-
"version": "7.0
|
|
3
|
+
"version": "7.1.0",
|
|
4
4
|
"description": "Install WebdriverIO with all its dependencies in a single run",
|
|
5
5
|
"author": "Christian Bromann <christian@saucelabs.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@schemastore/package": "^0.0.6",
|
|
41
41
|
"@types/cross-spawn": "^6.0.2",
|
|
42
42
|
"@types/jest": "^27.0.2",
|
|
43
|
-
"@types/node": "^
|
|
43
|
+
"@types/node": "^17.0.7",
|
|
44
44
|
"@types/semver": "^7.3.8",
|
|
45
45
|
"@typescript-eslint/eslint-plugin": "^5.0.0",
|
|
46
46
|
"@typescript-eslint/parser": "^5.0.0",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"chalk": "^4.1.2",
|
|
58
|
-
"commander": "^
|
|
58
|
+
"commander": "^9.0.0",
|
|
59
59
|
"cross-spawn": "^7.0.3",
|
|
60
60
|
"semver": "^7.3.5"
|
|
61
61
|
}
|