foundation-cli
foundation-cli copied to clipboard
Foundation does not output npm exit code
When I start my build process by calling npm run-script build --production and the build fails for some reason, npm exits with an error status code 1. This is important for CI-processes (e.g. gitlab-ci), which decide upon success or failure of a build through the exit code.
However, when I use foundation build, the status code is always the non-error 0, throwing off CI-pipelines.
Instead, it should pass through the exit code produces by the npm run-script...-call upon watch or build.