Skip to content
Permalink
Browse files
make sure build error output is visible
  • Loading branch information
mweststrate committed Mar 1, 2017
1 parent a4e2b0e commit 218e3b44ec42e0de4b98cc8d2686a90edd773047
Showing 1 changed file with 9 additions and 1 deletion.
@@ -43,4 +43,12 @@ fs.writeFileSync('.build/mobx.ts', allContents, { encoding: 'utf8', flag: 'a' })
`ncp flow-typed/mobx.js lib/mobx.js.flow`
]
.map(cmd => `${__dirname}/../node_modules/.bin/${cmd}`)
.map(cmd => exec(cmd))
.map(cmd => {
try {
exec(cmd);
} catch (e) {
console.log(e.stdout.toString());
console.error(e.stderr.toString());
process.exit(1);
}
})

0 comments on commit 218e3b4

Please sign in to comment.