Skip to content

Commit 923853e

Browse files
committed
fix(sparkyfitness): use pnpm
1 parent 0fc1257 commit 923853e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

ct/sparkyfitness.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function update_script() {
2929
exit
3030
fi
3131

32-
NODE_VERSION="25" setup_nodejs
32+
NODE_VERSION="25" NODE_MODULE="pnpm" setup_nodejs
3333

3434
if check_for_gh_release "sparkyfitness" "CodeWithCJ/SparkyFitness"; then
3535
msg_info "Stopping Services"
@@ -55,8 +55,8 @@ function update_script() {
5555

5656
msg_info "Updating Sparky Fitness Frontend (Patience)"
5757
cd /opt/sparkyfitness/SparkyFitnessFrontend
58-
$STD npm install
59-
$STD npm run build
58+
$STD pnpm install
59+
$STD pnpm run build
6060
cp -a /opt/sparkyfitness/SparkyFitnessFrontend/dist/. /var/www/sparkyfitness/
6161
msg_ok "Updated Sparky Fitness Frontend"
6262

install/sparkyfitness-install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ msg_info "Installing Dependencies"
1717
$STD apt install -y nginx
1818
msg_ok "Installed Dependencies"
1919

20-
NODE_VERSION="25" setup_nodejs
20+
NODE_VERSION="25" NODE_MODULE="pnpm" setup_nodejs
2121
PG_VERSION="18" setup_postgresql
2222
PG_DB_NAME="sparkyfitness" PG_DB_USER="sparky" PG_DB_GRANT_SUPERUSER="true" setup_postgresql_db
2323

@@ -50,8 +50,8 @@ msg_ok "Built Backend"
5050

5151
msg_info "Building Frontend (Patience)"
5252
cd /opt/sparkyfitness/SparkyFitnessFrontend
53-
$STD npm install
54-
$STD npm run build
53+
$STD pnpm install
54+
$STD pnpm run build
5555
cp -a /opt/sparkyfitness/SparkyFitnessFrontend/dist/. /var/www/sparkyfitness/
5656
msg_ok "Built Frontend"
5757

0 commit comments

Comments
 (0)