payload
payload copied to clipboard
refactor: use prettier API for generated db schema instead of `execAsync`
This 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.