@reliverse/rempts 1.7.22 → 1.7.23
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.
|
@@ -676,8 +676,8 @@ async function runCommandWithArgs(command, argv, parserOptions, returnCtx) {
|
|
|
676
676
|
else throw new Error(`Missing required argument: --${key}`);
|
|
677
677
|
}
|
|
678
678
|
if (def.dependencies && Array.isArray(def.dependencies)) {
|
|
679
|
-
const
|
|
680
|
-
if (
|
|
679
|
+
const finalValue = parsed[key] ?? defaultMap[key];
|
|
680
|
+
if (finalValue !== void 0) {
|
|
681
681
|
const missingDeps = def.dependencies.filter(
|
|
682
682
|
(dependency) => !(parsed[dependency] ?? defaultMap[dependency])
|
|
683
683
|
);
|
|
@@ -894,8 +894,8 @@ export async function runCmd(command, argv = [], parserOptions = {}) {
|
|
|
894
894
|
throw new Error(`Missing required argument: --${key}`);
|
|
895
895
|
}
|
|
896
896
|
if (def.dependencies && Array.isArray(def.dependencies)) {
|
|
897
|
-
const
|
|
898
|
-
if (
|
|
897
|
+
const finalValue = parsed[key] ?? defaultMap[key];
|
|
898
|
+
if (finalValue !== void 0) {
|
|
899
899
|
const missingDeps = def.dependencies.filter(
|
|
900
900
|
(dependency) => !(parsed[dependency] ?? defaultMap[dependency])
|
|
901
901
|
);
|