@mono-labs/cli 0.0.229 → 0.0.231

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,8 +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
- console.log(`→ background action: ${cmd}`);
88
- runBackground(cmd, envObj, options);
86
+ runBackground(cmd, envObj, 'background');
89
87
  }
90
88
  if (testFlag) {
91
89
  console.log(`→ foreground action (attached): ${fg}`);
@@ -95,8 +93,7 @@ export async function runMonoCommand(configObject, options = {}) {
95
93
  }
96
94
 
97
95
  try {
98
- console.log(`→ foreground action (attached): ${fg}`);
99
- await runBackground(fg, envObj, options, true);
96
+ await runBackground(fg, envObj, 'foreground', true);
100
97
  } finally {
101
98
  killAllBackground();
102
99
  }
@@ -17,13 +17,13 @@ function createdExpandedEnv(envObj) {
17
17
  export function runBackground(
18
18
  cmd,
19
19
  envObj = {},
20
- options = {},
20
+ logName = 'background',
21
21
  attached = false
22
22
  ) {
23
23
  const isWin = process.platform === 'win32';
24
24
 
25
25
  // Replace ${field} tokens in env values using dataLayer
26
-
26
+ console.log(`→ ${logName} action (attached): ${attached}`);
27
27
  const expandedEnv = createdExpandedEnv(envObj);
28
28
 
29
29
  // Replace in command string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mono-labs/cli",
3
- "version": "0.0.229",
3
+ "version": "0.0.231",
4
4
  "description": "A CLI tool for building and deploying projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/types.d.ts",