Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions skills/shadcn-ui/scripts/verify-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,15 @@ if [ -f "package.json" ]; then
echo ""
echo "πŸ“¦ Checking dependencies..."

# Read package.json once
PACKAGE_JSON_CONTENT=$(<package.json)

# Required dependencies
REQUIRED_DEPS=("react" "tailwindcss")
RECOMMENDED_DEPS=("class-variance-authority" "clsx" "tailwind-merge" "tailwindcss-animate")

for dep in "${REQUIRED_DEPS[@]}"; do
if grep -q "\"$dep\"" package.json; then
if [[ "$PACKAGE_JSON_CONTENT" == *"\"$dep\""* ]]; then
echo -e "${GREEN}βœ“${NC} $dep installed"
else
echo -e "${RED}βœ—${NC} $dep not installed"
Expand All @@ -117,7 +120,7 @@ if [ -f "package.json" ]; then
echo ""
echo "Recommended dependencies:"
for dep in "${RECOMMENDED_DEPS[@]}"; do
if grep -q "\"$dep\"" package.json; then
if [[ "$PACKAGE_JSON_CONTENT" == *"\"$dep\""* ]]; then
echo -e "${GREEN}βœ“${NC} $dep installed"
else
echo -e "${YELLOW}⚠${NC} $dep not installed (recommended)"
Expand Down
Loading