From 92aaa630edbb77c9a4090410cf232cd4f7425f56 Mon Sep 17 00:00:00 2001 From: kleap-admin Date: Thu, 15 Jan 2026 13:03:05 +0000 Subject: [PATCH] Update scripts/install-deps.sh --- scripts/install-deps.sh | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 scripts/install-deps.sh diff --git a/scripts/install-deps.sh b/scripts/install-deps.sh new file mode 100644 index 0000000..17b0cb5 --- /dev/null +++ b/scripts/install-deps.sh @@ -0,0 +1,39 @@ +#!/bin/bash + +# AUTO-INSTALL MISSING DEPENDENCIES SCRIPT +# This runs when dependencies are missing in CodeSandbox + +echo "📦 Auto-installing missing dependencies..." + +# Check if react-wrap-balancer is installed +if ! npm list react-wrap-balancer >/dev/null 2>&1; then + echo "Installing react-wrap-balancer..." + npm install --save react-wrap-balancer@latest --legacy-peer-deps --no-audit --no-fund || true +fi + +# Check if cobe is installed +if ! npm list cobe >/dev/null 2>&1; then + echo "Installing cobe..." + npm install --save cobe@latest --legacy-peer-deps --no-audit --no-fund || true +fi + +# Check if sharp is installed +if ! npm list sharp >/dev/null 2>&1; then + echo "Installing sharp..." + npm install --save sharp@latest --legacy-peer-deps --no-audit --no-fund || true +fi + +# Check if fast-glob is installed +if ! npm list fast-glob >/dev/null 2>&1; then + echo "Installing fast-glob..." + npm install --save fast-glob@latest --legacy-peer-deps --no-audit --no-fund || true +fi + +# Check if reading-time is installed +if ! npm list reading-time >/dev/null 2>&1; then + echo "Installing reading-time..." + npm install --save reading-time@latest --legacy-peer-deps --no-audit --no-fund || true +fi + +echo "✅ Dependencies check complete!" +exit 0 \ No newline at end of file