festa-magica-ia/scripts/push-remove-whatsapp.ts

25 lines
857 B
TypeScript
Raw Normal View History

import { execSync } from 'child_process';
async function pushUpdates() {
try {
console.log('\nAdicionando arquivos para remover botão de WhatsApp...');
execSync('git add src/App.tsx scripts/push-remove-whatsapp.ts', { stdio: 'inherit' });
execSync('git rm src/components/FloatingWhatsApp.tsx', { stdio: 'inherit' });
try {
execSync('git commit -m "refactor: remove botão de whatsapp flutuante"', { stdio: 'inherit' });
} catch (e) {
console.log('Nada para commitar.');
}
console.log('\nFazendo push do código...');
execSync('git push origin main', { stdio: 'inherit' });
console.log(`\n🎉 Push concluído com sucesso!`);
} catch (error: any) {
console.error('\n❌ Ocorreu um erro:', error.message);
}
}
pushUpdates();