michangarrito/apps/backend/node_modules/libphonenumber-js/build-scripts/create-metadata-update-branch.js
rckrdmrd 48dea7a5d0 feat: Initial commit - michangarrito
Marketplace móvil para negocios locales mexicanos.

Estructura inicial:
- apps/backend (NestJS API)
- apps/frontend (React Web)
- apps/mobile (Expo/React Native)
- apps/mcp-server (Claude MCP Server)
- apps/whatsapp-service (WhatsApp Business API)
- database/ (PostgreSQL DDL)
- docs/ (Documentación)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 04:41:02 -06:00

31 lines
758 B
JavaScript

// (deprecated because unused)
// Ccreates a new git branch called "update-metadata" and switches into it.
// If the branch with such name already exists, it overwrites it with a new one.
import exec from './helpers/exec.js'
let metadata_branch_exists = false
try
{
exec('git rev-parse --verify update-metadata')
metadata_branch_exists = true
}
catch (error)
{
if (error.message.indexOf('fatal: Needed a single revision') === -1)
{
throw error
}
}
if (metadata_branch_exists)
{
console.log(exec('git checkout master'))
console.log(exec('git branch -D update-metadata'))
}
console.log(exec('git pull'))
console.log(exec('git branch update-metadata origin/master'))
console.log(exec('git checkout update-metadata'))