Compare commits

...

3 Commits

Author SHA1 Message Date
semantic-release-bot
164570d176 chore(release): 1.0.0-dev.4 [skip ci]
# @revanced/bot-websocket-api [1.0.0-dev.4](https://github.com/revanced/revanced-helper/compare/@revanced/bot-websocket-api@1.0.0-dev.3...@revanced/bot-websocket-api@1.0.0-dev.4) (2024-07-23)

### Bug Fixes

* **apis/websocket:** hardcoded paths in tesseract worker builds ([38e00eb](38e00eb4e5))
2024-07-23 15:42:10 +00:00
PalmDevs
0d4898dae8 fix(bots/discord): revert dist denesting, fixes config not found 2024-07-23 22:41:15 +07:00
PalmDevs
38e00eb4e5 fix(apis/websocket): hardcoded paths in tesseract worker builds 2024-07-23 22:38:23 +07:00
7 changed files with 12 additions and 4 deletions

View File

@@ -1,3 +1,10 @@
# @revanced/bot-websocket-api [1.0.0-dev.4](https://github.com/revanced/revanced-helper/compare/@revanced/bot-websocket-api@1.0.0-dev.3...@revanced/bot-websocket-api@1.0.0-dev.4) (2024-07-23)
### Bug Fixes
* **apis/websocket:** hardcoded paths in tesseract worker builds ([38e00eb](https://github.com/revanced/revanced-helper/commit/38e00eb4e59c763bd74d27b9b9b482ea66e4dcf4))
# @revanced/bot-websocket-api [1.0.0-dev.3](https://github.com/revanced/revanced-helper/compare/@revanced/bot-websocket-api@1.0.0-dev.2...@revanced/bot-websocket-api@1.0.0-dev.3) (2024-07-23) # @revanced/bot-websocket-api [1.0.0-dev.3](https://github.com/revanced/revanced-helper/compare/@revanced/bot-websocket-api@1.0.0-dev.2...@revanced/bot-websocket-api@1.0.0-dev.3) (2024-07-23)

View File

@@ -2,7 +2,7 @@
"name": "@revanced/bot-websocket-api", "name": "@revanced/bot-websocket-api",
"type": "module", "type": "module",
"private": true, "private": true,
"version": "1.0.0-dev.3", "version": "1.0.0-dev.4",
"description": "🧦 WebSocket API server for bots assisting ReVanced", "description": "🧦 WebSocket API server for bots assisting ReVanced",
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {

View File

@@ -18,6 +18,7 @@ await Bun.build({
logger.info('Building Tesseract.js worker...') logger.info('Building Tesseract.js worker...')
await Bun.build({ await Bun.build({
entrypoints: ['../../node_modules/tesseract.js/src/worker-script/node/index.js'], entrypoints: ['../../node_modules/tesseract.js/src/worker-script/node/index.js'],
external: ['tesseract.js-core/*'],
target: 'bun', target: 'bun',
outdir: './dist/worker', outdir: './dist/worker',
minify: true, minify: true,

View File

@@ -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" ]

View File

@@ -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

View File

@@ -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,

BIN
bun.lockb

Binary file not shown.