From 8f783b90bc3b2dc6b2fc89ce52ba8e38ed3cf2a3 Mon Sep 17 00:00:00 2001 From: Joe McIlvain Date: Fri, 10 May 2024 07:00:16 -0700 Subject: [PATCH] fix: make the adapters depend on non-workspace Kurt version Prior to this commit, the adapter libraries were depending on a workspace version of Kurt. This is unfit for publishing, because downstream users of the libraries won't have Kurt in their workspace. We need to depend on fixed versions of Kurt and then use pnpm overrides to make it use the workspace version of Kurt in local development. This commit does that fix. --- package.json | 5 +++++ packages/kurt-open-ai/package.json | 2 +- packages/kurt-vertex-ai/package.json | 2 +- pnpm-lock.yaml | 3 +++ 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b6cdf55..c51e870 100644 --- a/package.json +++ b/package.json @@ -1,4 +1,9 @@ { + "pnpm": { + "overrides": { + "@formula-monks/kurt": "workspace:^" + } + }, "devDependencies": { "@biomejs/biome": "^1.7.3", "@commitlint/cli": "^19.3.0", diff --git a/packages/kurt-open-ai/package.json b/packages/kurt-open-ai/package.json index aa6df08..05ddce2 100644 --- a/packages/kurt-open-ai/package.json +++ b/packages/kurt-open-ai/package.json @@ -20,7 +20,7 @@ "extends": "semantic-release-monorepo" }, "dependencies": { - "@formula-monks/kurt": "workspace:^", + "@formula-monks/kurt": "^1.0.0", "openai": "^4.40.0", "zod": "^3.23.5", "zod-to-json-schema": "^3.23.0" diff --git a/packages/kurt-vertex-ai/package.json b/packages/kurt-vertex-ai/package.json index 13d6c59..a96b1b4 100644 --- a/packages/kurt-vertex-ai/package.json +++ b/packages/kurt-vertex-ai/package.json @@ -20,7 +20,7 @@ "extends": "semantic-release-monorepo" }, "dependencies": { - "@formula-monks/kurt": "workspace:^", + "@formula-monks/kurt": "^1.0.0", "@google-cloud/vertexai": "1.1.0", "zod": "^3.23.5", "zod-to-json-schema": "^3.23.0" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a2c1f25..c99eb38 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,6 +4,9 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false +overrides: + '@formula-monks/kurt': workspace:^ + importers: .: