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-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", 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",