@virmator/core 13.2.5 → 13.2.7
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/api/parse-args.js
CHANGED
|
@@ -66,7 +66,10 @@ export function parseCliArgs({ cliCommand, entryPointFilePath, plugins, log, })
|
|
|
66
66
|
});
|
|
67
67
|
const mappedPlugins = mapPluginsByCommand(plugins);
|
|
68
68
|
const parsedArgs = relevantArgs.reduce((parsedArgs, arg) => {
|
|
69
|
-
if (
|
|
69
|
+
if (hasKey(virmatorFlags, arg)) {
|
|
70
|
+
parsedArgs.virmatorFlags[arg] = true;
|
|
71
|
+
}
|
|
72
|
+
else if (parsedArgs.filteredCommandArgs.length) {
|
|
70
73
|
parsedArgs.filteredCommandArgs.push(arg);
|
|
71
74
|
}
|
|
72
75
|
else if (isLengthAtLeast(parsedArgs.commands, 1)) {
|
|
@@ -86,9 +89,6 @@ export function parseCliArgs({ cliCommand, entryPointFilePath, plugins, log, })
|
|
|
86
89
|
parsedArgs.commands.push(arg);
|
|
87
90
|
parsedArgs.plugin = commandPlugin.plugin;
|
|
88
91
|
}
|
|
89
|
-
else if (hasKey(virmatorFlags, arg)) {
|
|
90
|
-
parsedArgs.virmatorFlags[arg] = true;
|
|
91
|
-
}
|
|
92
92
|
else {
|
|
93
93
|
log.warning(`Ignored unknown flag: '${arg}'`);
|
|
94
94
|
}
|
|
@@ -7,4 +7,4 @@ export type PluginLogger = Logger & {
|
|
|
7
7
|
/** Creates a plugin logger based on the provided stderr and stdout writers. */
|
|
8
8
|
export declare function createPluginLogger(logWriters: Record<LogOutputType, Pick<Socket, 'write'>>, omitNewLines?: boolean | undefined): PluginLogger;
|
|
9
9
|
/** A {@link PluginLogger} implementation that does nothing. */
|
|
10
|
-
export declare const
|
|
10
|
+
export declare const emptyLog: PluginLogger;
|
|
@@ -75,7 +75,7 @@ export function createPluginLogger(logWriters, omitNewLines) {
|
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
77
|
/** A {@link PluginLogger} implementation that does nothing. */
|
|
78
|
-
export const
|
|
78
|
+
export const emptyLog = createPluginLogger({
|
|
79
79
|
stderr: {
|
|
80
80
|
write() {
|
|
81
81
|
return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@virmator/core",
|
|
3
|
-
"version": "13.2.
|
|
3
|
+
"version": "13.2.7",
|
|
4
4
|
"description": "Shared core functionality for all virmator plugins and the virmator CLI.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"automation",
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
"mono-vir": "^1.0.1",
|
|
40
40
|
"run-time-assertions": "^1.5.2",
|
|
41
41
|
"semver": "^7.6.3",
|
|
42
|
-
"type-fest": "^4.
|
|
42
|
+
"type-fest": "^4.24.0",
|
|
43
43
|
"typescript": "^5.5.4"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@augment-vir/testing": "^29.3.0",
|
|
47
|
-
"@types/node": "^22.
|
|
47
|
+
"@types/node": "^22.2.0",
|
|
48
48
|
"@types/semver": "^7.5.8",
|
|
49
49
|
"esbuild": "^0.23.0"
|
|
50
50
|
},
|