@mono-labs/cli 0.0.150 → 0.0.151

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.
@@ -89,8 +89,13 @@ export function buildCommands(files) {
89
89
  const optionValueList = argInfo.options;
90
90
  console.log('argInfo:', argInfo);
91
91
  console.log('optionValueList:', optionValueList);
92
- const actualOptions =
93
- argInfo?.allowAll ? [...optionValueList, 'all'] : [...optionValueList];
92
+ let actualOptions = optionValueList;
93
+ if (optionValueList) {
94
+ actualOptions =
95
+ argInfo?.allowAll ?
96
+ [...optionValueList, 'all']
97
+ : [...optionValueList];
98
+ }
94
99
 
95
100
  if (argInfo) {
96
101
  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.151",
4
4
  "description": "A CLI tool for building and deploying projects",
5
5
  "type": "module",
6
6
  "main": "index.js",