@reliverse/rempts 1.7.20 → 1.7.21
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.
|
@@ -675,22 +675,15 @@ async function runCommandWithArgs(command, argv, parserOptions, returnCtx) {
|
|
|
675
675
|
if (autoExit) process.exit(1);
|
|
676
676
|
else throw new Error(`Missing required argument: --${key}`);
|
|
677
677
|
}
|
|
678
|
-
if (def.dependencies && Array.isArray(def.dependencies)) {
|
|
678
|
+
if (def.dependencies && Array.isArray(def.dependencies) && rawVal !== void 0) {
|
|
679
679
|
const missingDeps = def.dependencies.filter(
|
|
680
680
|
(dependency) => !(parsed[dependency] ?? defaultMap[dependency])
|
|
681
681
|
);
|
|
682
682
|
if (missingDeps.length > 0) {
|
|
683
683
|
const depsList = missingDeps.map((d) => `--${d}`).join(", ");
|
|
684
|
-
|
|
685
|
-
relinka(
|
|
686
|
-
"error",
|
|
684
|
+
throw new Error(
|
|
687
685
|
`Argument --${key} can only be used when ${depsList} ${missingDeps.length === 1 ? "is" : "are"} set`
|
|
688
686
|
);
|
|
689
|
-
if (autoExit) process.exit(1);
|
|
690
|
-
else
|
|
691
|
-
throw new Error(
|
|
692
|
-
`Argument --${key} can only be used when ${depsList} ${missingDeps.length === 1 ? "is" : "are"} set`
|
|
693
|
-
);
|
|
694
687
|
}
|
|
695
688
|
}
|
|
696
689
|
try {
|