From a86c68e24c072431fa3cb8ac13355f1068b3f04e Mon Sep 17 00:00:00 2001 From: Ben Cutler Date: Wed, 23 Apr 2025 14:14:54 -0400 Subject: [PATCH] Add shell flag --- src/build-app.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/build-app.sh b/src/build-app.sh index 1a25749..385e73e 100644 --- a/src/build-app.sh +++ b/src/build-app.sh @@ -1,5 +1,6 @@ #!/usr/bin/env sh - +# It's important to fail the build if a command such as `npm install` fails. +set -e if [ -f "package.json" ]; then echo "Installing Node.js dependencies from package.json..." npm install