tldraw/apps/docs/scripts/reset-db.ts

9 lines
246 B
TypeScript
Raw Normal View History

import { nicelog } from '@/utils/nicelog'
import { connect } from './functions/connect'
;(async function () {
nicelog('◦ Resetting database...')
await connect({ reset: true, mode: 'readwrite' })
nicelog('✔ Complete!')
process.exit()
})()