File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {
2+ "scripts" : {
3+ "setup" : " bash \" $JEAN_ROOT_PATH/scripts/jean-setup.sh\" "
4+ }
5+ }
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ set -euo pipefail
3+
4+ echo " Setting up Jean worktree..."
5+
6+ # JEAN_ROOT_PATH is set by Jean to the main repo checkout.
7+ # We copy local config files from there into this worktree so each
8+ # worktree can be modified independently.
9+ if [ -z " ${JEAN_ROOT_PATH:- } " ]; then
10+ echo " JEAN_ROOT_PATH is not set — skipping config file copy."
11+ else
12+ copy_if_exists () {
13+ local src=" $JEAN_ROOT_PATH /$1 "
14+ if [ -f " $src " ]; then
15+ mkdir -p " $( dirname " $1 " ) "
16+ cp " $src " " $1 "
17+ echo " copied $1 "
18+ else
19+ echo " skipped $1 (not found in root)"
20+ fi
21+ }
22+
23+ echo " Copying local config files..."
24+ copy_if_exists " server/application-server/src/main/resources/application-local.yml"
25+ copy_if_exists " server/application-server/src/test/resources/application-live-local.yml"
26+ copy_if_exists " server/application-server/.env"
27+ copy_if_exists " server/intelligence-service/.env"
28+ copy_if_exists " server/webhook-ingest/.env"
29+ copy_if_exists " docker/.env"
30+ copy_if_exists " .claude/settings.local.json"
31+ fi
32+
33+ echo " Installing npm dependencies..."
34+ npm install
35+
36+ echo " ✅ Jean worktree setup complete."
You can’t perform that action at this time.
0 commit comments