Skip to content

Commit 7e12b1a

Browse files
wip. checking test for nextjs-ts add logs
1 parent fa07d01 commit 7e12b1a

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,17 @@ module.exports = function(commandName, args = [], customConfig = {}) {
2626
code ? reject(code) : resolve();
2727
});
2828
} else {
29-
console.log('------proc.stdout---->', proc.stdout);
30-
proc.stdout && proc.stdout.on('data', (data) => {
29+
console.log('------proc.stdout---->');
30+
proc.stdout.on('data', (data) => {
3131
const output = data.toString();
3232
console.log('SERVER STARTED!\n', output);
33-
console.log('----runCommand --resolve---->');
33+
resolve();
34+
});
35+
proc.stderr.on('data', (data) => {
36+
const output = data.toString();
37+
console.log('SERVER ERROR!\n', output);
38+
reject();
3439
});
35-
resolve();
3640
}
3741
});
3842

0 commit comments

Comments
 (0)