Skip to content

Commit

Permalink
build: exit build scripts on error
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhooks committed Jan 23, 2023
1 parent 507614b commit d06c09e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/build-js.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env sh

# exit when any command fails
set -e

# create the build artifact directory if it doesn't exist
mkdir -p dist

Expand Down
3 changes: 3 additions & 0 deletions scripts/build-wasm.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env sh

# exit when any command fails
set -e

# create the build artifact directory if it doesn't exist
mkdir -p build/wasm

Expand Down
5 changes: 5 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/usr/bin/env sh

# exit when any command fails
set -e

# compile C++ source into a WASM module
./scripts/build-wasm.sh

# compile TypeScript into JavaScript bundle
./scripts/build-js.sh

0 comments on commit d06c09e

Please sign in to comment.