@mono-labs/cli 0.0.76 → 0.0.78

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.
@@ -66,27 +66,14 @@ export function buildCommands(files) {
66
66
  // });
67
67
  console.log('optionsData:', optionsData);
68
68
  console.log('envDefaults', envDefaults);
69
- const optionVals = { ...(cmd.opts ? cmd.opts() : cmd) };
69
+ const optionVals = { ...(cmd.opts ? cmd.opts() : cmd), ...envDefaults };
70
+ console.log('optionVals before verify:', optionVals);
70
71
  Object.keys(optionVals).forEach((k) => {
71
72
  optionVals[k] = verifyOptionValue(k, optionVals[k], optionsData);
72
73
  });
74
+ console.log('optionVals after verify:', optionVals);
73
75
 
74
76
  console.log('envDefaults', envDefaults);
75
- const test = {
76
- type: {
77
- description: 'Build to target specific platform',
78
- default: 'backend',
79
- options: ['core', 'backend'],
80
- type: 'string',
81
- },
82
- dev: { description: 'Run in dev mode', shortcut: 'd' },
83
- region: {
84
- shortcut: 'r',
85
- type: 'string',
86
- description: 'Set region',
87
- default: 'us-east-2',
88
- },
89
- };
90
77
  const argVal = arg || configObject.argument?.default;
91
78
  console.log('optionVals:', optionVals);
92
79
  console.log('argVal:', argVal);
@@ -10,6 +10,7 @@ import { killAllBackground } from './runners/processManager.js';
10
10
  * Environment selection based on --stage flag and injection of AWS_PROFILE.
11
11
  */
12
12
  export async function runHasteCommand(configObject, options = {}) {
13
+ console.log('runHasteCommand options:', options);
13
14
  const devConfig = configObject.environments?.dev ?? {};
14
15
  const stageConfig = configObject.environments?.stage ?? {};
15
16
  const awsProfile = process.env.CDK_DEPLOY_PROFILE || 'default';
@@ -21,6 +21,7 @@ export function runBackground(
21
21
 
22
22
  // Replace ${field} tokens in env values using dataLayer
23
23
  console.log('envObj:', envObj);
24
+ console.log('backgroundOptions', options);
24
25
  const expandedEnv = createdExpandedEnv(envObj);
25
26
 
26
27
  // Replace in command string
@@ -9,6 +9,7 @@ const TOKEN_RX = /\{out:(?<field>[^\s}]+)\s+(?<value>[^\s}]+)\}/g;
9
9
  * of the form {out:field value} and stores them in the shared dataLayer.
10
10
  */
11
11
  export function runForeground(cmd, envObj = {}, options = {}) {
12
+ console.log('optionsForeground:', options);
12
13
  return new Promise((resolve, reject) => {
13
14
  let lastLine = '';
14
15
  let buffer = '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mono-labs/cli",
3
- "version": "0.0.76",
3
+ "version": "0.0.78",
4
4
  "description": "A CLI tool for building and deploying projects",
5
5
  "type": "module",
6
6
  "main": "index.js",