@testspectra/cli 1.0.40 → 1.0.41
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/dist/commands/init.js
CHANGED
|
@@ -283,6 +283,12 @@ export async function initCommand(options = {}) {
|
|
|
283
283
|
if (pkg.dependencies && pkg.dependencies["@testspectra/cli"]) {
|
|
284
284
|
pkg.dependencies["@testspectra/cli"] = cliDepVersion;
|
|
285
285
|
}
|
|
286
|
+
if (pkg.devDependencies && pkg.devDependencies["@testspectra/matchers"]) {
|
|
287
|
+
pkg.devDependencies["@testspectra/matchers"] = cliDepVersion;
|
|
288
|
+
}
|
|
289
|
+
if (pkg.dependencies && pkg.dependencies["@testspectra/matchers"]) {
|
|
290
|
+
pkg.dependencies["@testspectra/matchers"] = cliDepVersion;
|
|
291
|
+
}
|
|
286
292
|
content = JSON.stringify(pkg, null, 2);
|
|
287
293
|
}
|
|
288
294
|
catch { }
|
|
@@ -396,6 +402,9 @@ export async function initCommand(options = {}) {
|
|
|
396
402
|
if (tPkg.devDependencies && tPkg.devDependencies["@testspectra/cli"]) {
|
|
397
403
|
tPkg.devDependencies["@testspectra/cli"] = cliDepVersion;
|
|
398
404
|
}
|
|
405
|
+
if (tPkg.devDependencies && tPkg.devDependencies["@testspectra/matchers"]) {
|
|
406
|
+
tPkg.devDependencies["@testspectra/matchers"] = cliDepVersion;
|
|
407
|
+
}
|
|
399
408
|
fs.writeFileSync(rootPkgPath, JSON.stringify(tPkg, null, 2), "utf-8");
|
|
400
409
|
}
|
|
401
410
|
catch {
|
|
@@ -410,6 +419,8 @@ export async function initCommand(options = {}) {
|
|
|
410
419
|
rootPkg.devDependencies = {};
|
|
411
420
|
if (!rootPkg.devDependencies["@testspectra/cli"])
|
|
412
421
|
rootPkg.devDependencies["@testspectra/cli"] = cliDepVersion;
|
|
422
|
+
if (!rootPkg.devDependencies["@testspectra/matchers"])
|
|
423
|
+
rootPkg.devDependencies["@testspectra/matchers"] = cliDepVersion;
|
|
413
424
|
if (!rootPkg.devDependencies["typescript"])
|
|
414
425
|
rootPkg.devDependencies["typescript"] = "^5.4.5";
|
|
415
426
|
if (!rootPkg.devDependencies["@wdio/globals"])
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@testspectra/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.41",
|
|
4
4
|
"description": "TestSpectra Zero-Config Cross-Platform Test Runner CLI",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@clack/prompts": "^1.7.0",
|
|
24
|
-
"@testspectra/matchers": "^1.0.
|
|
24
|
+
"@testspectra/matchers": "^1.0.41",
|
|
25
25
|
"chalk": "^5.3.0",
|
|
26
26
|
"commander": "^12.1.0",
|
|
27
27
|
"dotenv": "^16.4.5",
|