fix: exit process with a status code when build fails (#11206)

Fixes: FRMW-2897
CLOSES CLO-434

Still need the frontend Admin bundler to provide some way to know if the build has failed or not.
This commit is contained in:
Harminder Virk
2025-01-29 14:04:47 +05:30
committed by GitHub
parent 1e6f47d662
commit 716de2cb3a
4 changed files with 37 additions and 23 deletions

View File

@@ -315,12 +315,12 @@ export class Compiler {
this.#logger.warn(
`Backend build completed with errors (${tracker.getSeconds()}s)`
)
} else {
this.#logger.info(
`Backend build completed successfully (${tracker.getSeconds()}s)`
)
return false
}
this.#logger.info(
`Backend build completed successfully (${tracker.getSeconds()}s)`
)
return true
}
@@ -359,7 +359,7 @@ export class Compiler {
this.#logger.info(
"Skipping admin build, since its disabled inside the medusa-config file"
)
return false
return true
}
/**
@@ -435,12 +435,12 @@ export class Compiler {
this.#logger.warn(
`Plugin build completed with errors (${tracker.getSeconds()}s)`
)
} else {
this.#logger.info(
`Plugin build completed successfully (${tracker.getSeconds()}s)`
)
return false
}
this.#logger.info(
`Plugin build completed successfully (${tracker.getSeconds()}s)`
)
return true
}