Skip to content

Commit d76935a

Browse files
wip. checking test for nextjs-ts add logs
1 parent 892eeda commit d76935a

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

packages/devextreme-cli/src/utility/run-command.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,18 @@ module.exports = function(commandName, args = [], customConfig = {}) {
2020
const proc = spawn(command, args, config);
2121

2222
const promise = new Promise((resolve, reject) => {
23-
proc.stdout.on('data', (data) => {
24-
const output = data.toString();
25-
console.log('SERVER STARTED!\n', output);
26-
});
27-
2823
if(!config.noExit) {
29-
30-
3124
proc.on('exit', (code) => {
3225
console.log('----runCommand exit------>', code);
3326
code ? reject(code) : resolve();
3427
});
3528
} else {
36-
console.log('----runCommand --resolve---->');
37-
resolve();
29+
proc.stdout.on('data', (data) => {
30+
const output = data.toString();
31+
console.log('SERVER STARTED!\n', output);
32+
console.log('----runCommand --resolve---->');
33+
resolve();
34+
});
3835
}
3936
});
4037

0 commit comments

Comments
 (0)