update admin pages for models and parts
This commit is contained in:
Executable
+36
@@ -0,0 +1,36 @@
|
||||
#!/bin/zsh
|
||||
|
||||
echo "🔧 Fixing incorrect '@/src/...' imports..."
|
||||
|
||||
# Search for JS, JSX, TS, TSX files under src/ only
|
||||
FILES=$(find src -type f \( -name "*.js" -o -name "*.jsx" -o -name "*.ts" -o -name "*.tsx" \))
|
||||
|
||||
for FILE in $FILES; do
|
||||
echo "📄 Checking $FILE"
|
||||
|
||||
# Fix @/src/lib → @/lib
|
||||
if grep -q '@/src/lib' "$FILE"; then
|
||||
echo " ➜ Fixing '@/src/lib' → '@/lib'"
|
||||
sed -i '' 's#@/src/lib#@/lib#g' "$FILE"
|
||||
fi
|
||||
|
||||
# Fix @/src/app → @/app
|
||||
if grep -q '@/src/app' "$FILE"; then
|
||||
echo " ➜ Fixing '@/src/app' → '@/app'"
|
||||
sed -i '' 's#@/src/app#@/app#g' "$FILE"
|
||||
fi
|
||||
|
||||
# Fix @/src/components → @/components
|
||||
if grep -q '@/src/components' "$FILE"; then
|
||||
echo " ➜ Fixing '@/src/components' → '@/components'"
|
||||
sed -i '' 's#@/src/components#@/components#g' "$FILE"
|
||||
fi
|
||||
|
||||
# Fix @/src/styles → @/styles
|
||||
if grep -q '@/src/styles' "$FILE"; then
|
||||
echo " ➜ Fixing '@/src/styles' → '@/styles'"
|
||||
sed -i '' 's#@/src/styles#@/styles#g' "$FILE"
|
||||
fi
|
||||
done
|
||||
|
||||
echo "🎉 Import alias fixes complete!"
|
||||
Reference in New Issue
Block a user