@mono-labs/cli 0.0.159 → 0.0.161

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.
@@ -130,21 +130,28 @@ export function buildCommands(files) {
130
130
  // envDefaults[item] = item.default;
131
131
  // });
132
132
 
133
- const optionVals = { ...envDefaults, ...(cmd.opts ? cmd.opts() : cmd) };
134
-
135
- Object.keys(optionVals).forEach((k) => {
136
- optionVals[k] = verifyOptionValue(k, optionVals[k], optionsData);
137
- });
138
- optionVals['prod'] = optionVals[config.prodFlag] || false;
139
-
140
- const argVal = arg || configObject.argument?.default;
141
-
142
- mergeData({ ...optionVals, arg: argVal });
143
- await runHasteCommand(configObject, optionVals);
133
+ try {
134
+ const optionVals = {
135
+ ...envDefaults,
136
+ ...(cmd.opts ? cmd.opts() : cmd),
137
+ };
138
+
139
+ Object.keys(optionVals).forEach((k) => {
140
+ optionVals[k] = verifyOptionValue(k, optionVals[k], optionsData);
141
+ });
142
+ optionVals['prod'] = optionVals[config.prodFlag] || false;
143
+
144
+ const argVal = arg || configObject.argument?.default;
145
+
146
+ mergeData({ ...optionVals, arg: argVal });
147
+ await runHasteCommand(configObject, optionVals);
148
+ } catch (err) {
149
+ console.error('Error executing mono command:', err.message);
150
+ }
144
151
  });
145
152
  });
146
153
  } catch (err) {
147
- console.error('Error executing mono command:', err);
154
+ console.error('Error executing mono command:', err.message);
148
155
  }
149
156
  }
150
157
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mono-labs/cli",
3
- "version": "0.0.159",
3
+ "version": "0.0.161",
4
4
  "description": "A CLI tool for building and deploying projects",
5
5
  "type": "module",
6
6
  "main": "index.js",