We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1582a0f commit d323154Copy full SHA for d323154
Build/Buildscripts/build.sh
@@ -1,6 +1,19 @@
1
#!/bin/bash
2
+set -e
3
4
echo "Building HTMLRunner"
-cd Build
5
-npm run build
6
-echo "Built HTMLRunner"
+
+# Resolve script directory
7
+SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8
+PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
9
10
+cd "$PROJECT_ROOT/Build" || { echo "Build directory not found"; exit 1; }
11
12
+# Ensure dependencies are installed
13
+echo "Installing dependencies..."
14
+npm install
15
16
+echo "Running build..."
17
+npm run build || { echo "npm build failed"; exit 1; }
18
19
+echo "Built HTMLRunner"
0 commit comments