mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-11 13:56:15 +00:00
fix(bots/discord): revert dist denesting, fixes config not found
This commit is contained in:
@@ -15,4 +15,4 @@ COPY --from=build /build/bots/discord/dist /app
|
||||
|
||||
USER 1000:1000
|
||||
|
||||
ENTRYPOINT [ "bun", "run", "index.js" ]
|
||||
ENTRYPOINT [ "bun", "run", "src/index.js" ]
|
||||
|
||||
@@ -54,7 +54,7 @@ To deploy the bot, you'll need to:
|
||||
|
||||
```sh
|
||||
cd /usr/src/discord-bot
|
||||
bun run index.js
|
||||
bun run src/index.js
|
||||
```
|
||||
|
||||
## ⏭️ What's next
|
||||
|
||||
@@ -9,7 +9,7 @@ await rm('./dist', { recursive: true })
|
||||
logger.info('Building bot...')
|
||||
await Bun.build({
|
||||
entrypoints: ['./src/index.ts'],
|
||||
outdir: './dist',
|
||||
outdir: './dist/src',
|
||||
target: 'bun',
|
||||
external: ['./config.js'],
|
||||
minify: true,
|
||||
|
||||
Reference in New Issue
Block a user