michangarrito/apps/backend/node_modules/libphonenumber-js/build-scripts/check-for-uncommitted-files.js
rckrdmrd 97f407c661 [MIGRATION-V2] feat: Migrar michangarrito a estructura v2
- Prefijo v2: MCH
- TRACEABILITY-MASTER.yml creado
- Listo para integracion como submodulo

Workspace: v2.0.0 | SIMCO: v4.0.0
2026-01-10 11:28:54 -06:00

13 lines
518 B
JavaScript

import getUncommittedChanges from './helpers/getUncommittedChanges.js';
import sendEmail from './helpers/sendEmail.js'
const uncommittedChanges = await getUncommittedChanges()
if (uncommittedChanges.length > 0) {
const errorText = `You have uncommitted files in your repository:\n\n${uncommittedChanges.map(({ filename }) => filename).join('\n')}`
console.error(new Error(errorText))
await sendEmail({
subject: '[libphonenumber-js] Uncommitted changes found',
text: errorText
})
process.exit(1)
}