@midscene/cli 0.26.0 → 0.26.1
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/es/index.js +13 -7
- package/dist/es/index.js.map +1 -1
- package/dist/lib/index.js +13 -7
- package/dist/lib/index.js.map +1 -1
- package/package.json +5 -5
package/dist/es/index.js
CHANGED
|
@@ -5711,7 +5711,7 @@ import { existsSync as existsSync3 } from "fs";
|
|
|
5711
5711
|
import { join as join2 } from "path";
|
|
5712
5712
|
|
|
5713
5713
|
// package.json
|
|
5714
|
-
var version = "0.26.
|
|
5714
|
+
var version = "0.26.1";
|
|
5715
5715
|
|
|
5716
5716
|
// src/batch-runner.ts
|
|
5717
5717
|
import { existsSync, mkdirSync, writeFileSync } from "fs";
|
|
@@ -17874,14 +17874,17 @@ async function createConfig(configYamlPath, options) {
|
|
|
17874
17874
|
android: options?.android
|
|
17875
17875
|
}
|
|
17876
17876
|
);
|
|
17877
|
+
const keepWindow = options?.keepWindow ?? parsedConfig.keepWindow;
|
|
17878
|
+
const headed = options?.headed ?? parsedConfig.headed;
|
|
17879
|
+
const finalHeaded = keepWindow || headed;
|
|
17877
17880
|
return {
|
|
17878
17881
|
files: parsedConfig.files,
|
|
17879
17882
|
concurrent: options?.concurrent ?? parsedConfig.concurrent,
|
|
17880
17883
|
continueOnError: options?.continueOnError ?? parsedConfig.continueOnError,
|
|
17881
17884
|
summary: options?.summary ?? parsedConfig.summary,
|
|
17882
17885
|
shareBrowserContext: options?.shareBrowserContext ?? parsedConfig.shareBrowserContext,
|
|
17883
|
-
headed:
|
|
17884
|
-
keepWindow
|
|
17886
|
+
headed: finalHeaded,
|
|
17887
|
+
keepWindow,
|
|
17885
17888
|
dotenvOverride: options?.dotenvOverride ?? parsedConfig.dotenvOverride,
|
|
17886
17889
|
dotenvDebug: options?.dotenvDebug ?? parsedConfig.dotenvDebug,
|
|
17887
17890
|
globalConfig
|
|
@@ -17891,14 +17894,17 @@ async function createFilesConfig(patterns, options = {}) {
|
|
|
17891
17894
|
const files = await expandFilePatterns(patterns, cwd());
|
|
17892
17895
|
const timestamp2 = Date.now();
|
|
17893
17896
|
const defaultSummary = `summary-${timestamp2}.json`;
|
|
17897
|
+
const keepWindow = options.keepWindow ?? defaultConfig.keepWindow;
|
|
17898
|
+
const headed = options.headed ?? defaultConfig.headed;
|
|
17899
|
+
const finalHeaded = keepWindow || headed;
|
|
17894
17900
|
return {
|
|
17895
17901
|
files,
|
|
17896
17902
|
concurrent: options.concurrent ?? defaultConfig.concurrent,
|
|
17897
17903
|
continueOnError: options.continueOnError ?? defaultConfig.continueOnError,
|
|
17898
17904
|
summary: options.summary ?? defaultSummary,
|
|
17899
17905
|
shareBrowserContext: options.shareBrowserContext ?? defaultConfig.shareBrowserContext,
|
|
17900
|
-
headed:
|
|
17901
|
-
keepWindow
|
|
17906
|
+
headed: finalHeaded,
|
|
17907
|
+
keepWindow,
|
|
17902
17908
|
dotenvOverride: options.dotenvOverride ?? defaultConfig.dotenvOverride,
|
|
17903
17909
|
dotenvDebug: options.dotenvDebug ?? defaultConfig.dotenvDebug,
|
|
17904
17910
|
globalConfig: {
|
|
@@ -17948,7 +17954,7 @@ Usage:
|
|
|
17948
17954
|
},
|
|
17949
17955
|
"keep-window": {
|
|
17950
17956
|
type: "boolean",
|
|
17951
|
-
description: `Keep the browser window open after the script finishes. This is useful when debugging, but will consume more resources, default is ${defaultConfig.keepWindow}`
|
|
17957
|
+
description: `Keep the browser window open after the script finishes. This option automatically enables --headed mode. This is useful when debugging, but will consume more resources, default is ${defaultConfig.keepWindow}`
|
|
17952
17958
|
},
|
|
17953
17959
|
"share-browser-context": {
|
|
17954
17960
|
type: "boolean",
|
|
@@ -17982,7 +17988,7 @@ Usage:
|
|
|
17982
17988
|
type: "string",
|
|
17983
17989
|
description: "Override device ID for Android environments."
|
|
17984
17990
|
}
|
|
17985
|
-
}).version("version", "Show version number", "0.26.
|
|
17991
|
+
}).version("version", "Show version number", "0.26.1").help().wrap(yargs_default().terminalWidth());
|
|
17986
17992
|
const argv = await args.argv;
|
|
17987
17993
|
debug("argv", argv);
|
|
17988
17994
|
return {
|