@mono-labs/cli 0.0.229 → 0.0.230
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.
|
@@ -84,7 +84,6 @@ export async function runMonoCommand(configObject, options = {}) {
|
|
|
84
84
|
const fg = actions[actions.length - 1];
|
|
85
85
|
|
|
86
86
|
for (const cmd of bg) {
|
|
87
|
-
console.log(`→ background action: ${cmd}`);
|
|
88
87
|
runBackground(cmd, envObj, options);
|
|
89
88
|
}
|
|
90
89
|
if (testFlag) {
|
|
@@ -95,7 +94,6 @@ export async function runMonoCommand(configObject, options = {}) {
|
|
|
95
94
|
}
|
|
96
95
|
|
|
97
96
|
try {
|
|
98
|
-
console.log(`→ foreground action (attached): ${fg}`);
|
|
99
97
|
await runBackground(fg, envObj, options, true);
|
|
100
98
|
} finally {
|
|
101
99
|
killAllBackground();
|
|
@@ -17,13 +17,13 @@ function createdExpandedEnv(envObj) {
|
|
|
17
17
|
export function runBackground(
|
|
18
18
|
cmd,
|
|
19
19
|
envObj = {},
|
|
20
|
-
|
|
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
|