bolt.diy / scripts /update-imports.sh
Ashhar
sync with bolt.diy
c0a9bce
raw
history blame contribute delete
357 Bytes
#!/bin/bash
# Update imports in TypeScript files
find app -type f -name "*.ts" -o -name "*.tsx" | xargs sed -i '' 's|~/components/settings/settings.types|~/components/@settings/core/types|g'
# Update imports for specific components
find app -type f -name "*.ts" -o -name "*.tsx" | xargs sed -i '' 's|~/components/settings/|~/components/@settings/tabs/|g'