import chalk from 'chalk'; import { db, ClosePool } from '../src/db/index.ts'; import * as Indexing from './indexing.ts'; await Indexing.createCardCollection(); await Indexing.createSkuCollection(); await Indexing.upsertCardCollection(db); await Indexing.upsertSkuCollection(db); await ClosePool(); console.log(chalk.green('Pokémon reindex complete.'));