From 4b455814b4634e34d217ba27a396b725f4308b29 Mon Sep 17 00:00:00 2001 From: M_Kececi Date: Tue, 17 Feb 2026 13:07:18 +0300 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- deploy/deploy.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/deploy/deploy.sh b/deploy/deploy.sh index a74a718..3d31523 100644 --- a/deploy/deploy.sh +++ b/deploy/deploy.sh @@ -45,6 +45,20 @@ run_deploy() { echo "== BUILD UI ==" cd "$APP_DIR/ui" npm ci --no-audit --no-fund --include=optional + + # npm scriptlerinde PATH onceligi nedeniyle node_modules/.bin/sass kullanilir. + # Bu dosya pure JS olursa --embedded hata verir; global Dart Sass binary'sine bagliyoruz. + SASS_BIN="$(command -v sass || true)" + if [[ -z "$SASS_BIN" ]]; then + echo "sass command not found in PATH." + return 1 + fi + "$SASS_BIN" --embedded --version >/dev/null 2>&1 || { + echo "Global sass supports --embedded is not available." + return 1 + } + ln -sf "$SASS_BIN" "$APP_DIR/ui/node_modules/.bin/sass" + npm run build echo "== BUILD API =="