13 lines
271 B
TypeScript
13 lines
271 B
TypeScript
import { createPgPool } from './db.ts';
|
|
import { exportApprovedCatalog } from './exporter.ts';
|
|
|
|
const pool = createPgPool();
|
|
|
|
try {
|
|
const manifest = await exportApprovedCatalog(pool);
|
|
|
|
console.log(JSON.stringify(manifest, null, 2));
|
|
} finally {
|
|
await pool.end();
|
|
}
|