-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_dev.sh
More file actions
27 lines (22 loc) · 1.06 KB
/
setup_dev.sh
File metadata and controls
27 lines (22 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env bash
# Get the directory where the script is located
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Unlink all packages globally first
bun unlink @have/ai @have/files @have/pdf @have/smrt @have/spider @have/sql @have/utils
bun unlink @happyvertical/praeco
# Link SDK packages
cd "$SCRIPT_DIR/packages/ai" && bun unlink && bun link
cd "$SCRIPT_DIR/packages/files" && bun unlink && bun link
cd "$SCRIPT_DIR/packages/pdf" && bun unlink && bun link
cd "$SCRIPT_DIR/packages/smrt" && bun unlink && bun link
cd "$SCRIPT_DIR/packages/spider" && bun unlink && bun link
cd "$SCRIPT_DIR/packages/sql" && bun unlink && bun link
cd "$SCRIPT_DIR/packages/utils" && bun unlink && bun link
# Link to praeco
cd "$SCRIPT_DIR/../praeco"
bun unlink @have/ai @have/files @have/smrt @have/spider @have/sql @have/utils
bun link @have/ai @have/files @have/smrt @have/spider @have/sql @have/utils
# Link to bentleyalberta.com
cd "$SCRIPT_DIR/../bentleyalberta.com"
bun unlink @happyvertical/praeco @have/smrt @have/utils
bun link @happyvertical/praeco @have/smrt @have/utils