From e3dc391c052cbe18112640639264d726939cce02 Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 25 Jun 2025 18:42:34 -0700 Subject: [PATCH 1/2] build.sh and build.ps1 to build packages in CI --- .github/workflows/main.yaml | 8 ++++++++ build.ps1 | 13 +++++++++++++ build.sh | 13 +++++++++++++ core/package.json | 2 +- 4 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 build.ps1 create mode 100644 build.sh diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 0c300bf17..7f8411041 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -104,6 +104,14 @@ jobs: path: gui/node_modules key: ${{ runner.os }}-node-${{ hashFiles('gui/package-lock.json') }} + - name: Build packages (Windows) + run: build.ps1 + if: matrix.os == 'windows-latest' + + - name: Build packages (Unix) + run: ./build.sh + if: matrix.os != 'windows-latest' + - name: Install extension Dependencies run: | cd extensions/vscode diff --git a/build.ps1 b/build.ps1 new file mode 100644 index 000000000..cd415b3df --- /dev/null +++ b/build.ps1 @@ -0,0 +1,13 @@ +Push-Location packages + +Push-Location "openai-adapters" +npm ci +npm run build +Pop-Location + +Push-Location "config-yaml" +npm ci +npm run build +Pop-Location + +Pop-Location \ No newline at end of file diff --git a/build.sh b/build.sh new file mode 100644 index 000000000..fa6f62731 --- /dev/null +++ b/build.sh @@ -0,0 +1,13 @@ +# Build @continuedev packages for monorepo style linking + +cd packages +cd openai-adapters + +npm ci +npm run build + +cd .. +cd config-yaml + +npm ci +npm run build diff --git a/core/package.json b/core/package.json index 26278e318..df74064a8 100644 --- a/core/package.json +++ b/core/package.json @@ -53,7 +53,7 @@ "@continuedev/config-yaml": "file:../packages/config-yaml", "@continuedev/fetch": "^1.0.14", "@continuedev/llm-info": "^1.0.8", - "@continuedev/openai-adapters": "1.0.42", + "@continuedev/openai-adapters": "file:../packages/openai-adapters", "@modelcontextprotocol/sdk": "^1.12.0", "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.1.1", From 9d5d7e40a48ed9fbc9edf8b67619f96f3c704930 Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 25 Jun 2025 18:44:42 -0700 Subject: [PATCH 2/2] i --- core/package-lock.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/package-lock.json b/core/package-lock.json index 4c7419178..6fed1b052 100644 --- a/core/package-lock.json +++ b/core/package-lock.json @@ -16,7 +16,7 @@ "@continuedev/config-yaml": "file:../packages/config-yaml", "@continuedev/fetch": "^1.0.14", "@continuedev/llm-info": "^1.0.8", - "@continuedev/openai-adapters": "1.0.42", + "@continuedev/openai-adapters": "file:../packages/openai-adapters", "@modelcontextprotocol/sdk": "^1.12.0", "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.1.1",