This ensure we throw an error when the transform fails, allowing failures in post-build hooks to be recorded by the test runner.