Roze ๐น
DTDrizzle Team
โขCreated by Roze ๐น on 7/30/2023 in #help
How to run a Cleanup Script
I saw someone provide a nice script to empty the database, here's a version of it:
But how do I run the dang thing?
I added script to my
package.json
But running pnpm db:clean
throws this error:
I tried googling some compiler options to set for ts-node in my tsconfig.json
file but haven't had success.
My goal is to have have a cleanup script and then a seed script, and then add commands to my package.json to be able to run from the terminal. Has anyone done something like that? Are there alternatives? I know this isn't entirely drizzle related and more a javascript thing, but curious what others may have done2 replies