Ignore nested dependency directories in detection

This commit is contained in:
2026-09-08 19:56:51 +01:00
parent 3006020287
commit dd4ba9e081
+5 -4
View File
@@ -1,4 +1,5 @@
#!/bin/bash
set -euo pipefail
echo "================================"
@@ -6,18 +7,18 @@ echo " Davidson CI - Project Detection"
echo "================================"
PHP_COUNT=$(find . -type f -name "*.php" \
-not -path "./vendor/*" | wc -l)
-not -path "*/vendor/*" | wc -l)
JS_COUNT=$(find . -type f \
\( -name "*.js" -o -name "*.mjs" -o -name "*.cjs" \) \
-not -path "./node_modules/*" | wc -l)
-not -path "*/node_modules/*" | wc -l)
TS_COUNT=$(find . -type f \
\( -name "*.ts" -o -name "*.tsx" \) \
-not -path "./node_modules/*" | wc -l)
-not -path "*/node_modules/*" | wc -l)
CSS_COUNT=$(find . -type f -name "*.css" \
-not -path "./node_modules/*" | wc -l)
-not -path "*/node_modules/*" | wc -l)
echo
echo "Detected:"