@mono-labs/cli 0.0.150 → 0.0.152

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.
@@ -57,6 +57,7 @@ export function buildCommands(files) {
57
57
  const argSpec = required ? `<${type}>` : `[${type}]`;
58
58
  current = current.argument(argSpec, argInfo.description || '');
59
59
  }
60
+ console.log('configObject:', JSON.stringify(configObject, null, 2));
60
61
 
61
62
  // Options
62
63
  Object.entries(optionsData).forEach(([optionKey, meta]) => {
@@ -89,8 +90,13 @@ export function buildCommands(files) {
89
90
  const optionValueList = argInfo.options;
90
91
  console.log('argInfo:', argInfo);
91
92
  console.log('optionValueList:', optionValueList);
92
- const actualOptions =
93
- argInfo?.allowAll ? [...optionValueList, 'all'] : [...optionValueList];
93
+ let actualOptions = optionValueList;
94
+ if (optionValueList) {
95
+ actualOptions =
96
+ argInfo?.allowAll ?
97
+ [...optionValueList, 'all']
98
+ : [...optionValueList];
99
+ }
94
100
 
95
101
  if (argInfo) {
96
102
  if (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mono-labs/cli",
3
- "version": "0.0.150",
3
+ "version": "0.0.152",
4
4
  "description": "A CLI tool for building and deploying projects",
5
5
  "type": "module",
6
6
  "main": "index.js",