mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-18 00:33:59 +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
|
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
|
```sh
|
||||||
cd /usr/src/discord-bot
|
cd /usr/src/discord-bot
|
||||||
bun run index.js
|
bun run src/index.js
|
||||||
```
|
```
|
||||||
|
|
||||||
## ⏭️ What's next
|
## ⏭️ What's next
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ await rm('./dist', { recursive: true })
|
|||||||
logger.info('Building bot...')
|
logger.info('Building bot...')
|
||||||
await Bun.build({
|
await Bun.build({
|
||||||
entrypoints: ['./src/index.ts'],
|
entrypoints: ['./src/index.ts'],
|
||||||
outdir: './dist',
|
outdir: './dist/src',
|
||||||
target: 'bun',
|
target: 'bun',
|
||||||
external: ['./config.js'],
|
external: ['./config.js'],
|
||||||
minify: true,
|
minify: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user