Skip to content

Commit

Permalink
make sure build error output is visible
Browse files Browse the repository at this point in the history
  • Loading branch information
mweststrate committed Mar 1, 2017
1 parent a4e2b0e commit 218e3b4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion scripts/single-file-build.js
Expand Up @@ -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.