-
Notifications
You must be signed in to change notification settings - Fork 175
/
build.sh
executable file
·62 lines (50 loc) · 1.39 KB
/
build.sh
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
# Exit immediately if a command exits with a non-zero status.
set -e
# Print each command to stdout before executing it.
set -x
# Ensure the script is run from the root of the workspace
if [ ! -f ./pnpm-workspace.yaml ]; then
echo "Error: This script must be run from the root of the workspace"
exit 1
fi
# Print versions for diagnostics
echo "Node version: $(node --version)"
echo "pnpm version: $(pnpm --version)"
# Install dependencies
echo "Installing dependencies..."
pnpm install
# Build the telemed-ehr/app
echo "Building package: telemed-ehr/app"
cd "packages/telemed-ehr/app"
pnpm build
cd ../../../
# Build the telemed-ehr/zambdas
echo "Building package: telemed-ehr/zambdas"
cd "packages/telemed-ehr/zambdas"
pnpm build
cd ../../../
# Build the telemed-intake/app
echo "Building package: telemed-intake/app"
cd "packages/telemed-intake/app"
pnpm build
cd ../../../
# Build the telemed-intake/zambdas
echo "Building package: telemed-intake/zambdas"
cd "packages/telemed-intake/zambdas"
pnpm build
cd ../../../
# Build the urgent-care/app
echo "Building package: urgent-care/app"
cd "packages/urgent-care-intake/app"
pnpm build
cd ../../../
# Build the urgent-care/zambdas
echo "Building package: urgent-care/zambdas"
cd "packages/urgent-care-intake/zambdas"
pnpm build
cd ../../../
# Lint the project
echo "Linting the project..."
pnpm lint
echo "Build script finished successfully."