mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-12 22:13:05 +00:00
refactor(briefing-geral): usa dieWithLabel do cli compartilhado
Convenção do repo: o 'die' é importado de scripts/lib/cli.mjs, nunca reescrito no script (guard do codebaseConventions).
This commit is contained in:
parent
4f326ce8c8
commit
b6324f3356
1 changed files with 3 additions and 4 deletions
|
|
@ -41,6 +41,8 @@ import { fileURLToPath } from 'node:url'
|
|||
|
||||
import { chromium } from '@playwright/test'
|
||||
|
||||
import { dieWithLabel } from './lib/cli.mjs'
|
||||
|
||||
const ROOT = join(dirname(fileURLToPath(import.meta.url)), '..')
|
||||
const DATA_DIR = 'data/briefing-geral-militancia'
|
||||
const OUT_DIR = 'docs/research/briefing-geral-militancia/livretos-1folha'
|
||||
|
|
@ -271,10 +273,7 @@ const PRINT_CSS = `
|
|||
.slot .sheet { break-after: auto; }
|
||||
`
|
||||
|
||||
const die = (message) => {
|
||||
console.error(`[${LABEL}] ERRO: ${message}`)
|
||||
process.exit(1)
|
||||
}
|
||||
const die = dieWithLabel(LABEL)
|
||||
|
||||
const readJson = async (path) => {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in a new issue