import { sheets } from '@norviah/sheets' ; import { existsSync , mkdirSync } from 'fs' ; import { join } from 'path' ; import { directories } from './util/directories' ; import { readdir } from './util/readdir' ; import { spreadsheets } from './util/spreadsheets' ; async function main ( ) { for ( const directory of Object . values ( directories ) ) { if ( ! existsSync ( directory ) ) mkdirSync ( directory , { recursive : true } ) ; } await sheets ( spreadsheets , { verbose : true } ) ; await import ( './scripts/translations' ) ; await import ( './scripts/sanitize' ) ; const handlers = readdir ( join ( __dirname , 'handlers' ) ) ; for ( const handler of handlers ) { await import ( handler ) ; } await import ( './scripts/recipes' ) ; await import ( './scripts/combine' ) ; } main ( ) ;