From 043bc0494aef5ebf86517f661aeecf9f63cc1be5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Mon, 22 Jul 2024 11:44:09 -0500 Subject: [PATCH] feat: sharp --- .github/workflows/cd-host.yml | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd-host.yml b/.github/workflows/cd-host.yml index 873dc22b0..5b8201b90 100644 --- a/.github/workflows/cd-host.yml +++ b/.github/workflows/cd-host.yml @@ -31,4 +31,4 @@ jobs: unzip bot.zip -d dist/bot - name: Run bot - run: mv dist/bot/prisma . && mv dist/bot/node_modules . && NODE_ENV=production GH_TOKEN=${{ secrets.GH_TOKEN }} DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} DATABASE_URL=${{ secrets.DATABASE_URL }} bun dist/bot/index.js + run: mv dist/bot/prisma . && mv dist/bot/node_modules . && mv dist/bot/package.json . && NODE_ENV=production GH_TOKEN=${{ secrets.GH_TOKEN }} DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} DATABASE_URL=${{ secrets.DATABASE_URL }} bun dist/bot/index.js diff --git a/package.json b/package.json index 4a882e335..9701c2f12 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "scripts": { "build:assets": "bun scripts/buildAssets/index.ts", "build:averages": "bun scripts/averages", - "build:bot": "rm -rf dist/bot && mkdir -p dist/bot/prisma && mkdir -p dist/bot/node_modules && bun build src/index.ts src/workers/bot.ts src/workers/render.ts --outdir dist/bot --target=bun --splitting --sourcemap=inline --external sharp && cp -R src/lang dist/bot/lang && prisma generate && cp prisma/schema.prisma dist/bot/prisma/schema.prisma && cp -R node_modules/prisma/*.node dist/bot/prisma && cp -R node_modules/sharp dist/bot/node_modules/sharp", + "build:bot": "rm -rf dist/bot && mkdir -p dist/bot/prisma && bun build src/index.ts src/workers/bot.ts src/workers/render.ts --outdir dist/bot --target=bun --splitting --sourcemap=inline --external sharp && cp -R src/lang dist/bot/lang && prisma generate && cp prisma/schema.prisma dist/bot/prisma/schema.prisma && cp -R node_modules/prisma/*.node dist/bot/prisma && cd dist/bot && bun init -y && bun add sharp", "build:website": "bun build:sitemap && next build", "build:sitemap": "bun scripts/sitemap.ts", "build:docs": "vitepress build docs",