From f4f33b0b5f10c62d692ff81a9d444898e5db867c Mon Sep 17 00:00:00 2001 From: Wooseong Kim Date: Mon, 20 Apr 2026 14:27:02 +0900 Subject: [PATCH] fix(ci): rely on idempotent dependency sync --- scripts/ensure-deps.sh | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/scripts/ensure-deps.sh b/scripts/ensure-deps.sh index 77a0914e..384a0983 100644 --- a/scripts/ensure-deps.sh +++ b/scripts/ensure-deps.sh @@ -3,22 +3,14 @@ set -euo pipefail ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" UI_DIR="$ROOT_DIR/ui" -UI_SENTINEL="$UI_DIR/node_modules/@date-fns/tz/date/mini.js" ensure_root_deps() { - if [[ ! -d "$ROOT_DIR/node_modules" ]]; then - echo "[deps] Installing root dependencies" - (cd "$ROOT_DIR" && bun install --frozen-lockfile) - fi + echo "[deps] Syncing root dependencies" + (cd "$ROOT_DIR" && bun install --frozen-lockfile) } ensure_ui_deps() { - if [[ -d "$UI_DIR/node_modules" && -f "$UI_SENTINEL" ]]; then - return - fi - - echo "[deps] Reinstalling UI dependencies" - rm -rf "$UI_DIR/node_modules" + echo "[deps] Syncing UI dependencies" (cd "$UI_DIR" && bun install --frozen-lockfile) }