preact build always exit with code = 0 where there are errors or not. And this is pretty annoying because you can't catch this on CI.
P/s: After a quick digging, a try ...catch block is missing here https://github.com/developit/preact-cli/blob/35fd84a86fe6b6c8abd60aeb721494771930c4ff/src/commands/build.js#L41 .
I think it's the root of this evil