Skip to content

Commit f761f9a

Browse files
authored
fix(ci): Fix CI issue where local monorepo node_modules were copied into export tests (#6774)
1 parent fd0c2ee commit f761f9a

File tree

14 files changed

+54
-763
lines changed

14 files changed

+54
-763
lines changed

Diff for: environment_tests/scripts/docker-ci-entrypoint.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ mkdir -p ./libs/langchain-community/
1717
mkdir -p ./libs/langchain-cohere/
1818
mkdir -p ./libs/langchain/
1919

20-
cp -r ../langchain-core ./libs/
21-
cp -r ../langchain-openai ./libs/
22-
cp -r ../langchain-anthropic ./libs/
23-
cp -r ../langchain-community ./libs/
24-
cp -r ../langchain-cohere ./libs/
25-
cp -r ../langchain ./libs/
20+
cp -r ../langchain-core/!(node_modules) ./libs/langchain-core
21+
cp -r ../langchain-openai/!(node_modules) ./libs/langchain-openai
22+
cp -r ../langchain-anthropic/!(node_modules) ./libs/langchain-anthropic
23+
cp -r ../langchain-community/!(node_modules) ./libs/langchain-community
24+
cp -r ../langchain-cohere/!(node_modules) ./libs/langchain-cohere
25+
cp -r ../langchain/!(node_modules) ./libs/langchain
2626

2727
# copy cache
2828
mkdir -p ./.yarn

Diff for: langchain/package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -411,15 +411,15 @@
411411
"devDependencies": {
412412
"@faker-js/faker": "^7.6.0",
413413
"@jest/globals": "^29.5.0",
414-
"@langchain/anthropic": "^0.2.8",
415-
"@langchain/aws": "^0.0.5",
416-
"@langchain/cohere": "^0.2.1",
414+
"@langchain/anthropic": "*",
415+
"@langchain/aws": "*",
416+
"@langchain/cohere": "*",
417417
"@langchain/core": "workspace:*",
418-
"@langchain/google-genai": "^0.0.26",
419-
"@langchain/google-vertexai": "~0.0",
420-
"@langchain/groq": "^0.0.15",
421-
"@langchain/mistralai": "^0.0.26",
422-
"@langchain/ollama": "^0.0.2",
418+
"@langchain/google-genai": "*",
419+
"@langchain/google-vertexai": "*",
420+
"@langchain/groq": "*",
421+
"@langchain/mistralai": "*",
422+
"@langchain/ollama": "*",
423423
"@langchain/scripts": ">=0.1.0 <0.2.0",
424424
"@swc/core": "^1.3.90",
425425
"@swc/jest": "^0.2.29",

Diff for: libs/langchain-cloudflare/.gitignore

-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ index.cjs
22
index.js
33
index.d.ts
44
index.d.cts
5-
langgraph/checkpointers.cjs
6-
langgraph/checkpointers.js
7-
langgraph/checkpointers.d.ts
8-
langgraph/checkpointers.d.cts
95
node_modules
106
dist
117
.yarn

Diff for: libs/langchain-cloudflare/langchain.config.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ function abs(relativePath) {
1313
export const config = {
1414
internals: [/node\:/, /@langchain\/core\//, /@langchain\/langgraph\/web/],
1515
entrypoints: {
16-
index: "index",
17-
"langgraph/checkpointers": "langgraph/checkpointers",
16+
index: "index"
1817
},
1918
tsConfigPath: resolve("./tsconfig.json"),
2019
cjsSource: "./dist-cjs",

Diff for: libs/langchain-cloudflare/package.json

+2-22
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
"@cloudflare/workers-types": "^4.20240909.0",
4343
"@jest/globals": "^29.5.0",
4444
"@langchain/core": "workspace:*",
45-
"@langchain/langgraph": "~0.0.31",
4645
"@langchain/scripts": ">=0.1.0 <0.2.0",
4746
"@langchain/standard-tests": "0.0.0",
4847
"@swc/core": "^1.3.90",
@@ -68,13 +67,7 @@
6867
"typescript": "<5.2.0"
6968
},
7069
"peerDependencies": {
71-
"@langchain/core": ">=0.2.21 <0.4.0",
72-
"@langchain/langgraph": "*"
73-
},
74-
"peerDependenciesMeta": {
75-
"@langchain/langgraph": {
76-
"optional": true
77-
}
70+
"@langchain/core": ">=0.2.21 <0.4.0"
7871
},
7972
"publishConfig": {
8073
"access": "public"
@@ -89,26 +82,13 @@
8982
"import": "./index.js",
9083
"require": "./index.cjs"
9184
},
92-
"./langgraph/checkpointers": {
93-
"types": {
94-
"import": "./langgraph/checkpointers.d.ts",
95-
"require": "./langgraph/checkpointers.d.cts",
96-
"default": "./langgraph/checkpointers.d.ts"
97-
},
98-
"import": "./langgraph/checkpointers.js",
99-
"require": "./langgraph/checkpointers.cjs"
100-
},
10185
"./package.json": "./package.json"
10286
},
10387
"files": [
10488
"dist/",
10589
"index.cjs",
10690
"index.js",
10791
"index.d.ts",
108-
"index.d.cts",
109-
"langgraph/checkpointers.cjs",
110-
"langgraph/checkpointers.js",
111-
"langgraph/checkpointers.d.ts",
112-
"langgraph/checkpointers.d.cts"
92+
"index.d.cts"
11393
]
11494
}

Diff for: libs/langchain-cloudflare/src/langgraph/checkpointers.ts

-212
This file was deleted.

Diff for: libs/langchain-community/.gitignore

-4
Original file line numberDiff line numberDiff line change
@@ -1026,10 +1026,6 @@ chains/graph_qa/cypher.cjs
10261026
chains/graph_qa/cypher.js
10271027
chains/graph_qa/cypher.d.ts
10281028
chains/graph_qa/cypher.d.cts
1029-
langgraph/checkpointers/vercel_kv.cjs
1030-
langgraph/checkpointers/vercel_kv.js
1031-
langgraph/checkpointers/vercel_kv.d.ts
1032-
langgraph/checkpointers/vercel_kv.d.cts
10331029
node_modules
10341030
dist
10351031
.yarn

Diff for: libs/langchain-community/langchain.config.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,7 @@ export const config = {
316316
"experimental/llms/chrome_ai": "experimental/llms/chrome_ai",
317317
"experimental/tools/pyinterpreter": "experimental/tools/pyinterpreter",
318318
// chains
319-
"chains/graph_qa/cypher": "chains/graph_qa/cypher",
320-
// langgraph checkpointers
321-
"langgraph/checkpointers/vercel_kv": "langgraph/checkpointers/vercel_kv"
319+
"chains/graph_qa/cypher": "chains/graph_qa/cypher"
322320
},
323321
requiresOptionalDependency: [
324322
"tools/aws_sfn",

0 commit comments

Comments
 (0)