Bug
When neu build fails due to an error, the CLI still exits with code 0 (success). This is a problem for CI/CD pipelines because they check exit codes to know if a build passed or failed.
Where the bug is
In src/modules/bundler.js, the outer catch block at the end of bundleApp() only logs the error but doesn't call process.exit(1):
catch (e) {
utils.error(e.message.replace(/^Error: /g, ''));
// no process.exit(1) here
}
Why this is wrong
The two inner catch blocks in the same function already call process.exit(1) correctly. The outer catch is just missing it.
Fix
Add process.exit(1) after the utils.error call in the outer catch block.
Bug
When
neu buildfails due to an error, the CLI still exits with code 0 (success). This is a problem for CI/CD pipelines because they check exit codes to know if a build passed or failed.Where the bug is
In
src/modules/bundler.js, the outer catch block at the end ofbundleApp()only logs the error but doesn't callprocess.exit(1):Why this is wrong
The two inner catch blocks in the same function already call
process.exit(1)correctly. The outer catch is just missing it.Fix
Add
process.exit(1)after the utils.error call in the outer catch block.