From 7074ce040c9e62a417a5d6b67cbaf1a1c3553cdc Mon Sep 17 00:00:00 2001 From: Gareth King Date: Wed, 14 Dec 2016 21:33:51 +0200 Subject: [PATCH] Show compilation output and errors --- src/ngm/tasks/build.task.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ngm/tasks/build.task.ts b/src/ngm/tasks/build.task.ts index 1d99e3c..645c537 100644 --- a/src/ngm/tasks/build.task.ts +++ b/src/ngm/tasks/build.task.ts @@ -1,5 +1,11 @@ const execa = require('execa'); export function build(project:string) { - return execa('tsc', ['-p', project], {preferLocal: true}); + return execa('tsc', ['-p', project], {preferLocal: true}) + .then(function (result) { + console.log(result.stdout); + }) + .catch(function (error) { + console.log(error); + }); } \ No newline at end of file