feat(bots/discord): don't nest builds in src directory, autogen db when missing

This commit is contained in:
PalmDevs
2024-07-23 20:58:05 +07:00
parent ffe0a3ddf5
commit 4834685186
7 changed files with 65 additions and 21 deletions

View File

@@ -9,10 +9,9 @@
"register": "bun run scripts/reload-slash-commands.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",
"build": "bun prepare && bun run scripts/build.ts",
"watch": "bun dev",
"prepare": "bun run scripts/generate-indexes.ts && drizzle-kit push"
"prepare": "bun run scripts/generate-indexes.ts && drizzle-kit generate --name=schema"
},
"repository": {
"type": "git",
@@ -44,4 +43,4 @@
"discord-api-types": "^0.37.92",
"drizzle-kit": "^0.22.8"
}
}
}