mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-11 13:56:15 +00:00
chore(bots/discord): automatically build default db
This commit is contained in:
@@ -4,6 +4,6 @@ export default defineConfig({
|
||||
dialect: 'sqlite',
|
||||
schema: './src/database/schemas.ts',
|
||||
dbCredentials: {
|
||||
url: `file:./${process.env['DATABASE_PATH']}`,
|
||||
url: process.env['DATABASE_PATH'] ? `file:./${process.env['DATABASE_PATH']}` : 'file:./db.sqlite3',
|
||||
},
|
||||
})
|
||||
|
||||
@@ -7,12 +7,12 @@
|
||||
"main": "src/index.ts",
|
||||
"scripts": {
|
||||
"register": "bun run scripts/reload-slash-commands.ts",
|
||||
"start": "bun run scripts/generate-indexes.ts && bun run src/index.ts",
|
||||
"dev": "bun run scripts/generate-indexes.ts && bun --watch src/index.ts",
|
||||
"start": "bun prepare && bun run src/index.ts",
|
||||
"dev": "bun prepare && bun --watch src/index.ts",
|
||||
"build:config": "bun build config.ts --outdir=dist",
|
||||
"build": "bun prepare && bun build:config && bun build src/index.ts -e ./config.js --target=bun --outdir=dist/src && DATABASE_PATH=dist/db.sqlite3 drizzle-kit push",
|
||||
"build": "bun prepare && bun build:config && bun build src/index.ts -e ./config.js --target=bun --outdir=dist/src && drizzle-kit push",
|
||||
"watch": "bun dev",
|
||||
"prepare": "bun run scripts/generate-indexes.ts"
|
||||
"prepare": "bun run scripts/generate-indexes.ts && drizzle-kit push"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
Reference in New Issue
Block a user