Skip to content

Commit

Permalink
fix: moved core lib deps to peer deps for plugins (#669)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelgj authored Jul 31, 2024
1 parent 2c34958 commit c1f8412
Show file tree
Hide file tree
Showing 11 changed files with 45 additions and 32 deletions.
10 changes: 6 additions & 4 deletions js/plugins/chroma/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@
"author": "genkit",
"license": "Apache-2.0",
"dependencies": {
"@genkit-ai/ai": "workspace:*",
"@genkit-ai/core": "workspace:*",
"chromadb": "^1.7.3",
"ts-md5": "^1.3.1",
"zod": "^3.22.4"
"zod": "^3.22.4",
"chromadb": "^1.7.3"
},
"peerDependencies": {
"@genkit-ai/ai": "workspace:*",
"@genkit-ai/core": "workspace:*"
},
"devDependencies": {
"@types/node": "^20.11.16",
Expand Down
6 changes: 4 additions & 2 deletions js/plugins/dev-local-vectorstore/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@
"author": "genkit",
"license": "Apache-2.0",
"dependencies": {
"@genkit-ai/ai": "workspace:*",
"@genkit-ai/core": "workspace:*",
"compute-cosine-similarity": "^1.1.0",
"ts-md5": "^1.3.1",
"zod": "^3.22.4"
},
"peerDependencies": {
"@genkit-ai/ai": "workspace:*",
"@genkit-ai/core": "workspace:*"
},
"devDependencies": {
"@types/node": "^20.11.16",
"npm-run-all": "^4.1.5",
Expand Down
6 changes: 4 additions & 2 deletions js/plugins/dotprompt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,15 @@
"author": "genkit",
"license": "Apache-2.0",
"dependencies": {
"@genkit-ai/ai": "workspace:*",
"@genkit-ai/core": "workspace:*",
"front-matter": "^4.0.2",
"handlebars": "^4.7.8",
"node-fetch": "^3.3.2",
"zod": "^3.22.4"
},
"peerDependencies": {
"@genkit-ai/ai": "workspace:*",
"@genkit-ai/core": "workspace:*"
},
"devDependencies": {
"@types/node": "^20.11.16",
"npm-run-all": "^4.1.5",
Expand Down
6 changes: 4 additions & 2 deletions js/plugins/evaluators/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,16 @@
"author": "genkit",
"license": "Apache-2.0",
"dependencies": {
"@genkit-ai/ai": "workspace:*",
"@genkit-ai/core": "workspace:*",
"@genkit-ai/dotprompt": "workspace:*",
"compute-cosine-similarity": "^1.1.0",
"node-fetch": "^3.3.2",
"path": "^0.12.7",
"zod": "^3.22.4"
},
"peerDependencies": {
"@genkit-ai/ai": "workspace:*",
"@genkit-ai/core": "workspace:*"
},
"devDependencies": {
"@types/node": "^20.11.16",
"npm-run-all": "^4.1.5",
Expand Down
8 changes: 4 additions & 4 deletions js/plugins/firebase/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@
"author": "genkit",
"license": "Apache-2.0",
"dependencies": {
"@genkit-ai/ai": "workspace:*",
"@genkit-ai/core": "workspace:*",
"@genkit-ai/flow": "workspace:*",
"@genkit-ai/google-cloud": "workspace:*",
"express": "^4.19.2",
"google-auth-library": "^9.6.3",
Expand All @@ -42,7 +39,10 @@
"peerDependencies": {
"@google-cloud/firestore": "^7.6.0",
"firebase-admin": "^12.2.0",
"firebase-functions": "^4.8.0 || ^5.0.0"
"firebase-functions": "^4.8.0 || ^5.0.0",
"@genkit-ai/ai": "workspace:*",
"@genkit-ai/core": "workspace:*",
"@genkit-ai/flow": "workspace:*"
},
"devDependencies": {
"@types/node": "^20.11.16",
Expand Down
6 changes: 4 additions & 2 deletions js/plugins/google-cloud/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
"author": "genkit",
"license": "Apache-2.0",
"dependencies": {
"@genkit-ai/ai": "workspace:*",
"@genkit-ai/core": "workspace:*",
"@google-cloud/logging-winston": "^6.0.0",
"@google-cloud/opentelemetry-cloud-monitoring-exporter": "^0.19.0",
"@google-cloud/opentelemetry-cloud-trace-exporter": "^2.1.0",
Expand All @@ -52,6 +50,10 @@
"prettier-plugin-organize-imports": "^3.2.4",
"winston": "^3.12.0"
},
"peerDependencies": {
"@genkit-ai/ai": "workspace:*",
"@genkit-ai/core": "workspace:*"
},
"devDependencies": {
"@types/node": "^20.11.16",
"npm-run-all": "^4.1.5",
Expand Down
6 changes: 4 additions & 2 deletions js/plugins/googleai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,15 @@
"author": "genkit",
"license": "Apache-2.0",
"dependencies": {
"@genkit-ai/ai": "workspace:*",
"@genkit-ai/core": "workspace:*",
"@google/generative-ai": "^0.15.0",
"google-auth-library": "^9.6.3",
"node-fetch": "^3.3.2",
"zod": "^3.22.4"
},
"peerDependencies": {
"@genkit-ai/ai": "workspace:*",
"@genkit-ai/core": "workspace:*"
},
"devDependencies": {
"@types/node": "^20.11.16",
"npm-run-all": "^4.1.5",
Expand Down
12 changes: 7 additions & 5 deletions js/plugins/langchain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,16 @@
"author": "genkit",
"license": "Apache-2.0",
"dependencies": {
"@langchain/community": "^0.0.53",
"@langchain/core": "^0.1.61",
"@opentelemetry/api": "^1.7.0",
"zod": "^3.22.4"
},
"peerDependencies": {
"@genkit-ai/ai": "workspace:*",
"@genkit-ai/core": "workspace:*",
"@genkit-ai/flow": "workspace:*",
"zod": "^3.22.4",
"langchain": "^0.1.36",
"@langchain/community": "^0.0.53",
"@langchain/core": "^0.1.61",
"@opentelemetry/api": "^1.7.0"
"langchain": "^0.1.36"
},
"devDependencies": {
"@types/node": "^20.11.16",
Expand Down
2 changes: 1 addition & 1 deletion js/plugins/ollama/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"author": "genkit",
"license": "Apache-2.0",
"dependencies": {
"peerDependencies": {
"@genkit-ai/ai": "workspace:*",
"@genkit-ai/core": "workspace:*"
},
Expand Down
6 changes: 4 additions & 2 deletions js/plugins/pinecone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@
"author": "genkit",
"license": "Apache-2.0",
"dependencies": {
"@genkit-ai/ai": "workspace:*",
"@genkit-ai/core": "workspace:*",
"@pinecone-database/pinecone": "^2.0.1",
"ts-md5": "^1.3.1",
"zod": "^3.22.4"
},
"peerDependencies": {
"@genkit-ai/ai": "workspace:*",
"@genkit-ai/core": "workspace:*"
},
"devDependencies": {
"@types/node": "^20.11.16",
"npm-run-all": "^4.1.5",
Expand Down
9 changes: 3 additions & 6 deletions js/plugins/vertexai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,18 @@
"dependencies": {
"@anthropic-ai/sdk": "^0.24.3",
"@anthropic-ai/vertex-sdk": "^0.4.0",
"@genkit-ai/ai": "workspace:*",
"@genkit-ai/core": "workspace:*",
"@genkit-ai/flow": "workspace:*",
"@google-cloud/aiplatform": "^3.23.0",
"@google-cloud/vertexai": "^1.1.0",
"google-auth-library": "^9.6.3",
"googleapis": "^140.0.1",
"node-fetch": "^3.3.2",
"openai": "^4.52.7"
"openai": "^4.52.7",
"zod": "^3.22.4"
},
"peerDependencies": {
"@genkit-ai/ai": "workspace:*",
"@genkit-ai/core": "workspace:*",
"@genkit-ai/flow": "workspace:*",
"zod": "^3.22.4"
"@genkit-ai/flow": "workspace:*"
},
"optionalDependencies": {
"firebase-admin": "^12.1.0",
Expand Down

0 comments on commit c1f8412

Please sign in to comment.