From a4e511bbca84f26d8173bfcc7be18963188f773b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Sun, 21 Jul 2024 20:49:26 -0500 Subject: [PATCH] fix: porisma dir --- .github/workflows/cd-host.yml | 2 +- .gitignore | 3 ++- package.json | 2 +- tsconfig.json | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cd-host.yml b/.github/workflows/cd-host.yml index 01a2c1495..f363bb33a 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/node_modules . && ls && 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 . && 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/.gitignore b/.gitignore index e73d781fc..6a7316df2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ node_modules +_node_modules package-lock.json .env /test-results/ @@ -20,4 +21,4 @@ temp/ depots public/sitemap* /firebase.json -target \ No newline at end of file +target diff --git a/package.json b/package.json index 313299104..3e882c076 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/node_modules/prisma && bun build src/index.ts src/workers/bot.ts src/workers/render.ts --outdir dist/bot --target=bun --splitting --sourcemap=inline && cp -R src/lang dist/bot/lang && prisma generate && cp prisma/schema.prisma dist/bot/schema.prisma && cp -R node_modules/prisma/*.node dist/bot/node_modules/prisma", + "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 && 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", "build:website": "bun build:sitemap && next build", "build:sitemap": "bun scripts/sitemap.ts", "build:docs": "vitepress build docs", diff --git a/tsconfig.json b/tsconfig.json index c910f50ff..04c0b7a88 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -21,5 +21,5 @@ ] }, "include": ["src/**/*", "scripts/**/*", "dist/website/types/**/*.ts"], - "exclude": ["node_modules", "dist", "scripts"] + "exclude": ["_node_modules", "dist", "scripts"] }