@mono-labs/cli 0.0.230 → 0.0.232

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.
@@ -74,8 +74,7 @@ export async function runMonoCommand(configObject, options = {}) {
74
74
 
75
75
  // Run preactions sequentially
76
76
  for (const cmd of preactions) {
77
- console.log(`→ pre-action: ${cmd}`);
78
- await runForeground(cmd, envObj, options);
77
+ await runForeground(cmd, envObj, 'pre-action');
79
78
  }
80
79
 
81
80
  if (actions.length === 0) return;
@@ -84,7 +83,7 @@ export async function runMonoCommand(configObject, options = {}) {
84
83
  const fg = actions[actions.length - 1];
85
84
 
86
85
  for (const cmd of bg) {
87
- runBackground(cmd, envObj, options);
86
+ runBackground(cmd, envObj, 'background');
88
87
  }
89
88
  if (testFlag) {
90
89
  console.log(`→ foreground action (attached): ${fg}`);
@@ -94,7 +93,7 @@ export async function runMonoCommand(configObject, options = {}) {
94
93
  }
95
94
 
96
95
  try {
97
- await runBackground(fg, envObj, options, true);
96
+ await runBackground(fg, envObj, 'foreground', true);
98
97
  } finally {
99
98
  killAllBackground();
100
99
  }
@@ -23,11 +23,12 @@ export function runBackground(
23
23
  const isWin = process.platform === 'win32';
24
24
 
25
25
  // Replace ${field} tokens in env values using dataLayer
26
- console.log(`→ ${logName} action (attached): ${attached}`);
26
+
27
27
  const expandedEnv = createdExpandedEnv(envObj);
28
28
 
29
29
  // Replace in command string
30
30
  const outCmd = replaceTokens(cmd);
31
+ console.log(`→ ${logName} action ${attached ? '(attached)' : ''}: ${outCmd}`);
31
32
 
32
33
  return new Promise((resolve, reject) => {
33
34
  const child = spawn(outCmd, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mono-labs/cli",
3
- "version": "0.0.230",
3
+ "version": "0.0.232",
4
4
  "description": "A CLI tool for building and deploying projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/types.d.ts",