From dc3194a775874c6f8d593c08e5ba59eb978fa1f9 Mon Sep 17 00:00:00 2001 From: Ashish Date: Tue, 5 Aug 2025 16:51:25 +0530 Subject: [PATCH 1/4] add build workflow --- .github/workflows/build.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 00000000..77da59ce --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,23 @@ + +name: Build on PR + +on: + pull_request: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: '20' + + - name: Install Dependencies + run: npm install + + - name: Run Build + run: npm run build From 6788e8ff3695b218099ab0ba0f1d81aebcea5cb0 Mon Sep 17 00:00:00 2001 From: Ashish Date: Tue, 5 Aug 2025 17:19:20 +0530 Subject: [PATCH 2/4] commit --- packages/db/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/db/index.ts b/packages/db/index.ts index 0aa97b3d..cf753342 100644 --- a/packages/db/index.ts +++ b/packages/db/index.ts @@ -1,5 +1,9 @@ import { PrismaClient } from '@prisma/client' + + + + const prismaClientSingleton = () => { return new PrismaClient() } From 73d1c75ee97b2b43454836b7ad73ff8596ff159d Mon Sep 17 00:00:00 2001 From: Ashish Date: Tue, 5 Aug 2025 18:12:02 +0530 Subject: [PATCH 3/4] fix package --- packages/db/tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/db/tsconfig.json b/packages/db/tsconfig.json index 872a7a30..5fd6fc80 100644 --- a/packages/db/tsconfig.json +++ b/packages/db/tsconfig.json @@ -3,7 +3,7 @@ "compilerOptions": { "outDir": "dist" }, - "include": ["src"], + "include": ["."], "exclude": ["node_modules", "dist"] } \ No newline at end of file From fc0831ec8df313f8778cfdae2871c9ed994a6a12 Mon Sep 17 00:00:00 2001 From: Ashish Date: Tue, 5 Aug 2025 18:55:16 +0530 Subject: [PATCH 4/4] add space --- packages/db/tsconfig.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/db/tsconfig.json b/packages/db/tsconfig.json index 5fd6fc80..528ffa51 100644 --- a/packages/db/tsconfig.json +++ b/packages/db/tsconfig.json @@ -5,5 +5,7 @@ }, "include": ["."], "exclude": ["node_modules", "dist"] + + } \ No newline at end of file