ui5-test-runner 6.0.0-beta.1 → 6.0.0-beta.4
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 +1 -1
- package/dist/cli.js +4 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# UI5 Test runner 6️⃣
|
|
1
|
+
# UI5 Test runner 6️⃣ β
|
|
2
2
|
|
|
3
3
|
[](https://github.com/ArnaudBuchholz/ui5-test-runner/actions/workflows/node.js.yml)
|
|
4
4
|
[](https://packagequality.com/#?package=ui5-test-runner)
|
package/dist/cli.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { Exit, Host } from './platform/index.js';
|
|
3
|
+
import { version } from './platform/version.js';
|
|
3
4
|
import { CommandLine } from './configuration/CommandLine.js';
|
|
4
5
|
import { execute } from './modes/execute.js';
|
|
5
6
|
const main = async () => {
|
|
6
|
-
const
|
|
7
|
+
const cliVersion = await version();
|
|
8
|
+
const cliName = cliVersion.split('@')[0] ?? 'ui5-test-runner';
|
|
9
|
+
const indexOfCli = process.argv.findIndex((value) => /[\\/]cli(\.[tj]s)?$/.exec(value) || value.endsWith(cliName));
|
|
7
10
|
const configuration = await CommandLine.buildConfigurationFrom(Host.cwd(), process.argv.slice(indexOfCli + 1));
|
|
8
11
|
await execute(configuration);
|
|
9
12
|
};
|