@mono-labs/cli 0.0.118 → 0.0.120
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.
|
@@ -137,7 +137,7 @@ export function buildCommands(files) {
|
|
|
137
137
|
console.log('optionsData:', optionsData);
|
|
138
138
|
console.log('envDefaults', envDefaults);
|
|
139
139
|
console.log('cmd', cmd);
|
|
140
|
-
const optionVals = { ...(cmd.opts ? cmd.opts() : cmd)
|
|
140
|
+
const optionVals = { ...envDefaults, ...(cmd.opts ? cmd.opts() : cmd) };
|
|
141
141
|
console.log('optionVals before verify:', optionVals);
|
|
142
142
|
Object.keys(optionVals).forEach((k) => {
|
|
143
143
|
optionVals[k] = verifyOptionValue(k, optionVals[k], optionsData);
|
|
@@ -149,7 +149,7 @@ export function buildCommands(files) {
|
|
|
149
149
|
const argVal = arg || configObject.argument?.default;
|
|
150
150
|
console.log('optionVals:', optionVals);
|
|
151
151
|
console.log('argVal:', argVal);
|
|
152
|
-
mergeData({ ...optionVals, arg: argVal
|
|
152
|
+
mergeData({ ...optionVals, arg: argVal });
|
|
153
153
|
await runHasteCommand(configObject, optionVals);
|
|
154
154
|
});
|
|
155
155
|
});
|