Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
refactor: optimize database schema generation bin script (#10086)
* Avoids additional file system writes (1 for `await writeFile` and then `npx prettier --write`) instead prettier now formats the javascript string directly. Went from 650 MS to 250 MS for the prettify block. * Disables database connection, since the `db.generateSchema` doesn't need connection, this also disables Drizzle schema push. * Properly exits the bin script process.
S
Sasha committed
7c4ea5b86e7e2033720bc3c9ffb245f97a22669d
Parent: 7292220
Committed by GitHub <noreply@github.com>
on 12/20/2024, 12:43:11 PM