From 20b6c2207c0f53c71359981b32832778ce057c06 Mon Sep 17 00:00:00 2001 From: anurag629 Date: Sat, 7 Mar 2026 21:18:48 +0530 Subject: [PATCH 1/3] fix: add files field to core and server packages to exclude tests and source from npm --- packages/core/package.json | 3 +++ packages/server/package.json | 3 +++ 2 files changed, 6 insertions(+) diff --git a/packages/core/package.json b/packages/core/package.json index 2d8ba4e..923e1db 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -11,6 +11,9 @@ "import": "./dist/index.js" } }, + "files": [ + "dist" + ], "scripts": { "build": "tsc", "typecheck": "tsc --noEmit", diff --git a/packages/server/package.json b/packages/server/package.json index e1a89ce..f588e11 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -23,6 +23,9 @@ "import": "./dist/adapters/cloudflare.js" } }, + "files": [ + "dist" + ], "scripts": { "build": "tsc", "typecheck": "tsc --noEmit", From df9197b8f42f74d007b3d59f86dbc73a593daf0f Mon Sep 17 00:00:00 2001 From: anurag629 Date: Sat, 7 Mar 2026 21:24:55 +0530 Subject: [PATCH 2/3] fix: remove explicit pnpm version from workflows to avoid conflict with packageManager --- .github/workflows/ci.yml | 2 -- .github/workflows/release.yml | 2 -- 2 files changed, 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d67d36e..95ae6fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,8 +13,6 @@ jobs: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 - with: - version: 9 - uses: actions/setup-node@v4 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6873e19..11a81a0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,8 +17,6 @@ jobs: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 - with: - version: 9 - uses: actions/setup-node@v4 with: From babf56fe5e7cfd8eab0de2a73837664927c867a8 Mon Sep 17 00:00:00 2001 From: anurag629 Date: Sat, 7 Mar 2026 21:26:22 +0530 Subject: [PATCH 3/3] fix: build core before typecheck to resolve workspace dependency in CI --- .github/workflows/ci.yml | 3 +++ .github/workflows/release.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 95ae6fe..41f6154 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,6 +21,9 @@ jobs: - run: pnpm install --frozen-lockfile + - name: Build core (required by server) + run: pnpm --filter @chatcops/core build + - name: Typecheck run: pnpm -r typecheck diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 11a81a0..cb7e068 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,6 +26,9 @@ jobs: - run: pnpm install --frozen-lockfile + - name: Build core (required by server) + run: pnpm --filter @chatcops/core build + - name: Typecheck run: pnpm -r typecheck