@testrigor/testrigor-cli 2.0.0 → 2.0.2
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/README.md +8 -181
- package/appium-server/package-lock.json +4148 -0
- package/appium-server/package.json +11 -0
- package/bin/dev +2 -8
- package/bin/run +1 -3
- package/dist/command-base.d.ts +4 -4
- package/dist/commands/authenticate.d.ts +3 -5
- package/dist/commands/authenticate.js +14 -12
- package/dist/commands/test-suite/config.d.ts +3 -3
- package/dist/commands/test-suite/config.js +12 -12
- package/dist/commands/test-suite/run.d.ts +23 -23
- package/dist/commands/test-suite/run.js +6 -2
- package/dist/commands/test-suite/validate-syntax.d.ts +6 -6
- package/dist/commands/test-suite/validate-syntax.js +4 -4
- package/dist/flags/chrome-extension.d.ts +5 -2
- package/dist/util/appium.d.ts +9 -0
- package/dist/util/appium.js +98 -20
- package/npm-shrinkwrap.json +1056 -10220
- package/oclif.manifest.json +5 -1
- package/package.json +14 -9
- package/scripts/check-node.js +22 -0
package/oclif.manifest.json
CHANGED
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"pluginName": "@testrigor/testrigor-cli",
|
|
29
29
|
"pluginType": "core",
|
|
30
30
|
"strict": true,
|
|
31
|
+
"enableJsonFlag": false,
|
|
31
32
|
"isESM": false,
|
|
32
33
|
"relativePath": [
|
|
33
34
|
"dist",
|
|
@@ -84,6 +85,7 @@
|
|
|
84
85
|
"pluginName": "@testrigor/testrigor-cli",
|
|
85
86
|
"pluginType": "core",
|
|
86
87
|
"strict": true,
|
|
88
|
+
"enableJsonFlag": false,
|
|
87
89
|
"isESM": false,
|
|
88
90
|
"relativePath": [
|
|
89
91
|
"dist",
|
|
@@ -324,6 +326,7 @@
|
|
|
324
326
|
"pluginName": "@testrigor/testrigor-cli",
|
|
325
327
|
"pluginType": "core",
|
|
326
328
|
"strict": true,
|
|
329
|
+
"enableJsonFlag": false,
|
|
327
330
|
"isESM": false,
|
|
328
331
|
"relativePath": [
|
|
329
332
|
"dist",
|
|
@@ -437,6 +440,7 @@
|
|
|
437
440
|
"pluginName": "@testrigor/testrigor-cli",
|
|
438
441
|
"pluginType": "core",
|
|
439
442
|
"strict": true,
|
|
443
|
+
"enableJsonFlag": false,
|
|
440
444
|
"isESM": false,
|
|
441
445
|
"relativePath": [
|
|
442
446
|
"dist",
|
|
@@ -446,5 +450,5 @@
|
|
|
446
450
|
]
|
|
447
451
|
}
|
|
448
452
|
},
|
|
449
|
-
"version": "2.0.
|
|
453
|
+
"version": "2.0.2"
|
|
450
454
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@testrigor/testrigor-cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "TestRigor Command Line",
|
|
5
5
|
"author": "Ivo Parun Rua @parunruaivo",
|
|
6
6
|
"bin": {
|
|
@@ -15,30 +15,35 @@
|
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
17
|
"/bin",
|
|
18
|
+
"/scripts/check-node.js",
|
|
18
19
|
"/dist",
|
|
20
|
+
"/appium-server/package.json",
|
|
21
|
+
"/appium-server/package-lock.json",
|
|
19
22
|
"/npm-shrinkwrap.json",
|
|
20
23
|
"oclif.manifest.json"
|
|
21
24
|
],
|
|
22
25
|
"dependencies": {
|
|
23
|
-
"@
|
|
24
|
-
"@oclif/
|
|
26
|
+
"@inquirer/password": "^4.0.23",
|
|
27
|
+
"@oclif/core": "^4.14.0",
|
|
28
|
+
"@oclif/plugin-help": "^6.3.0",
|
|
25
29
|
"@supercharge/fs": "^3.4.0",
|
|
26
|
-
"appium": "^3.8.0",
|
|
27
30
|
"glob": "^13.0.6",
|
|
28
31
|
"gunzip-maybe": "^1.4.2",
|
|
29
32
|
"is-ci": "^3.0.1",
|
|
30
33
|
"listr2": "^8.0.1",
|
|
31
34
|
"tar-stream": "3.2.0",
|
|
35
|
+
"tslib": "^2.8.1",
|
|
32
36
|
"unzip-stream": "^0.3.1",
|
|
33
37
|
"yaml": "^2.3.4"
|
|
34
38
|
},
|
|
35
39
|
"devDependencies": {
|
|
36
|
-
"@oclif/test": "^
|
|
40
|
+
"@oclif/test": "^4.2.0",
|
|
37
41
|
"@types/chai": "^4",
|
|
38
42
|
"@types/eslint__js": "^8.42.3",
|
|
39
43
|
"@types/is-ci": "^3.0.4",
|
|
40
44
|
"@types/mocha": "^9.0.0",
|
|
41
45
|
"@types/node": "^20.19.43",
|
|
46
|
+
"@types/semver": "^7.8.0",
|
|
42
47
|
"@types/tar-stream": "3.1.5",
|
|
43
48
|
"@types/unzip-stream": "^0.3.4",
|
|
44
49
|
"@types/unzipper": "^0.10.9",
|
|
@@ -53,9 +58,9 @@
|
|
|
53
58
|
"mocha": "^12.0.2",
|
|
54
59
|
"nock": "^14.0.17",
|
|
55
60
|
"oclif": "^6.0.2",
|
|
61
|
+
"semver": "^7.8.5",
|
|
56
62
|
"shx": "^0.3.4",
|
|
57
63
|
"ts-node": "^10.9.1",
|
|
58
|
-
"tslib": "^2.6.1",
|
|
59
64
|
"typescript": "~6.0.3",
|
|
60
65
|
"typescript-eslint": "^8.71.0"
|
|
61
66
|
},
|
|
@@ -86,12 +91,12 @@
|
|
|
86
91
|
}
|
|
87
92
|
},
|
|
88
93
|
"scripts": {
|
|
89
|
-
"preinstall": "node -
|
|
94
|
+
"preinstall": "node scripts/check-node.js",
|
|
90
95
|
"build": "shx rm -rf dist && tsc -b",
|
|
91
96
|
"lint": "eslint .",
|
|
92
|
-
"postpack": "shx rm -f oclif.manifest.json
|
|
97
|
+
"postpack": "shx rm -f oclif.manifest.json npm-shrinkwrap.json",
|
|
93
98
|
"posttest": "npm run lint",
|
|
94
|
-
"prepack": "npm run build && oclif manifest && oclif readme &&
|
|
99
|
+
"prepack": "npm run build && oclif manifest && oclif readme && node scripts/write-shrinkwrap.js",
|
|
95
100
|
"test": "mocha --forbid-only \"test/**/*.ts\"",
|
|
96
101
|
"version": "oclif readme && git add README.md",
|
|
97
102
|
"tarballs": "npm run prepack && oclif pack tarballs --targets linux-x64,linux-arm64,darwin-x64,darwin-arm64,win32-x64"
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// preinstall check: stops the install on an unsupported Node.js before npm
|
|
3
|
+
// replaces anything. It runs on whatever Node the user has, including ones we
|
|
4
|
+
// don't support, so it has no dependencies and avoids newer syntax.
|
|
5
|
+
// Keep the supported versions in sync with "engines" in package.json.
|
|
6
|
+
|
|
7
|
+
const [major, minor] = process.versions.node.split(".").map(Number);
|
|
8
|
+
const supported =
|
|
9
|
+
(major === 20 && minor >= 19) || (major === 22 && minor >= 12) || major >= 24;
|
|
10
|
+
|
|
11
|
+
if (!supported) {
|
|
12
|
+
console.error(
|
|
13
|
+
[
|
|
14
|
+
"",
|
|
15
|
+
`@testrigor/testrigor-cli requires Node.js 20.19+, 22.12+ or 24+. You are on ${process.version}.`,
|
|
16
|
+
"Install a supported version from https://nodejs.org/en/download/ and try again.",
|
|
17
|
+
"Nothing was changed: any testrigor-cli version you already had is still installed.",
|
|
18
|
+
"",
|
|
19
|
+
].join("\n")
|
|
20
|
+
);
|
|
21
|
+
process.exit(1);
|
|
22
|
+
}
|