From 1083655a3b3114f89c89daee3bd8fa5012e5dfe1 Mon Sep 17 00:00:00 2001 From: Michael Wolf Date: Thu, 1 Jan 2026 14:08:46 -0600 Subject: [PATCH] Add and use a simpler run script --- express/run.sh | 27 ++------------------------- master/runexpress.go | 2 +- 2 files changed, 3 insertions(+), 26 deletions(-) diff --git a/express/run.sh b/express/run.sh index 725e61c..3fbad7d 100755 --- a/express/run.sh +++ b/express/run.sh @@ -1,32 +1,9 @@ #!/bin/bash -# XXX should we default to strict or non-strict here? - set -eu DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -run_dir="$DIR" +cd "$DIR" -source "$run_dir"/../framework/shims/common -source "$run_dir"/../framework/shims/node.common - -strict_arg="${1:---no-strict}" - -if [[ "$strict_arg" = "--strict" ]] ; then - strict="yes" -else - strict="no" -fi - -cmd="tsx" -if [[ "strict" = "yes" ]] ; then - cmd="ts-node" -fi - -cd "$run_dir" - -"$run_dir"/check.sh -#echo checked -# $ROOT/cmd "$cmd" $run_dir/app.ts -../cmd node "$run_dir"/out/app.js +exec ../cmd node dist/index.js diff --git a/master/runexpress.go b/master/runexpress.go index 9b2e2c4..9de84b0 100644 --- a/master/runexpress.go +++ b/master/runexpress.go @@ -16,7 +16,7 @@ func runExpress(changes <-chan FileChange) { // Helper to start the express process startExpress := func() *exec.Cmd { - cmd := exec.Command("node", "../express/dist/index.js") + cmd := exec.Command("../express/run.sh") cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr