- expand scripts/watch-kraiken-lib.sh to watch atomic rename events, validate required tools, and gracefully restart only the containers that mount kraiken- lib/dist - verify the host-built dist is mounted read-only inside each service and observe live rebuild + restart behavior under inotify - run the local podman stack, exercise the watcher by editing kraiken-lib/src/helpers.ts, and confirm GraphQL responds through Caddy after restarts resolves #33 Co-authored-by: openhands <openhands@all-hands.dev> Co-authored-by: johba <johba@harb.eth> Reviewed-on: https://codeberg.org/johba/harb/pulls/38
14 lines
314 B
Bash
Executable file
14 lines
314 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
cd "$(dirname "$0")/../kraiken-lib"
|
|
|
|
if [[ ! -d node_modules || ! -x node_modules/.bin/tsc ]]; then
|
|
if ! npm install --silent; then
|
|
echo "Warning: npm install failed; continuing with existing node_modules" >&2
|
|
fi
|
|
fi
|
|
|
|
./node_modules/.bin/tsc
|
|
|
|
echo "kraiken-lib built"
|