Skip to content

Commit

Permalink
Fix export tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 committed Aug 22, 2024
1 parent dc33895 commit 22e0e33
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 7 deletions.
21 changes: 14 additions & 7 deletions environment_tests/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ services:
- ../.yarn:/root/.yarn
- ../environment_tests/test-exports-esbuild:/package
- ../environment_tests/scripts:/scripts
- ../langgraph:/langgraph
- ../libs/langgraph:/langgraph
- ../libs/checkpoint:/checkpoint
command: bash /scripts/docker-ci-entrypoint.sh
test-exports-esm:
image: node:18
Expand All @@ -23,7 +24,8 @@ services:
- ../.yarn:/root/.yarn
- ../environment_tests/test-exports-esm:/package
- ../environment_tests/scripts:/scripts
- ../langgraph:/langgraph
- ../libs/langgraph:/langgraph
- ../libs/checkpoint:/checkpoint
command: bash /scripts/docker-ci-entrypoint.sh
test-exports-tsc:
image: node:18
Expand All @@ -34,7 +36,8 @@ services:
- ../.yarn:/root/.yarn
- ../environment_tests/test-exports-tsc:/package
- ../environment_tests/scripts:/scripts
- ../langgraph:/langgraph
- ../libs/langgraph:/langgraph
- ../libs/checkpoint:/checkpoint
command: bash /scripts/docker-ci-entrypoint.sh
test-exports-cjs:
image: node:18
Expand All @@ -45,7 +48,8 @@ services:
- ../.yarn:/root/.yarn
- ../environment_tests/test-exports-cjs:/package
- ../environment_tests/scripts:/scripts
- ../langgraph:/langgraph
- ../libs/langgraph:/langgraph
- ../libs/checkpoint:/checkpoint
command: bash /scripts/docker-ci-entrypoint.sh
test-exports-cf:
image: node:18
Expand All @@ -56,7 +60,8 @@ services:
- ../.yarn:/root/.yarn
- ../environment_tests/test-exports-cf:/package
- ../environment_tests/scripts:/scripts
- ../langgraph:/langgraph
- ../libs/langgraph:/langgraph
- ../libs/checkpoint:/checkpoint
command: bash /scripts/docker-ci-entrypoint.sh
test-exports-vercel:
image: node:18
Expand All @@ -70,7 +75,8 @@ services:
- ../.yarn:/root/.yarn
- ../environment_tests/test-exports-vercel:/package
- ../environment_tests/scripts:/scripts
- ../langgraph:/langgraph
- ../libs/langgraph:/langgraph
- ../libs/checkpoint:/checkpoint
command: bash /scripts/docker-ci-entrypoint.sh
test-exports-vite:
image: node:18
Expand All @@ -81,7 +87,8 @@ services:
- ../.yarn:/root/.yarn
- ../environment_tests/test-exports-vite:/package
- ../environment_tests/scripts:/scripts
- ../langgraph:/langgraph
- ../libs/langgraph:/langgraph
- ../libs/checkpoint:/checkpoint
command: bash /scripts/docker-ci-entrypoint.sh
success:
image: alpine:3.14
Expand Down
2 changes: 2 additions & 0 deletions environment_tests/scripts/docker-ci-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ shopt -s extglob
cp -r ../package/!(node_modules|dist|dist-cjs|dist-esm|build|.next|.turbo) .

mkdir -p ./libs/langgraph/
mkdir -p ./libs/checkpoint/

cp -r ../langgraph ./libs/
cp -r ../checkpoint ./libs/

# copy cache
mkdir -p ./.yarn
Expand Down
1 change: 1 addition & 0 deletions environment_tests/test-exports-cf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
},
"dependencies": {
"@langchain/langgraph": "workspace:*",
"@langchain/langgraph-checkpoint": "workspace:*",
"wrangler": "3.19.0",
"vitest": "0.34.3",
"typescript": "^5.0.3"
Expand Down
1 change: 1 addition & 0 deletions environment_tests/test-exports-cjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"license": "MIT",
"dependencies": {
"@langchain/langgraph": "workspace:*",
"@langchain/langgraph-checkpoint": "workspace:*",
"@tsconfig/recommended": "^1.0.2",
"@types/node": "^18.15.11",
"typescript": "^5.0.0"
Expand Down
1 change: 1 addition & 0 deletions environment_tests/test-exports-esbuild/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"license": "MIT",
"dependencies": {
"@langchain/langgraph": "workspace:*",
"@langchain/langgraph-checkpoint": "workspace:*",
"@tsconfig/recommended": "^1.0.2",
"@types/node": "^18.15.11",
"esbuild": "^0.17.18",
Expand Down
1 change: 1 addition & 0 deletions environment_tests/test-exports-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"license": "MIT",
"dependencies": {
"@langchain/langgraph": "workspace:*",
"@langchain/langgraph-checkpoint": "workspace:*",
"@tsconfig/recommended": "^1.0.2",
"@types/node": "^18.15.11",
"tsx": "^4.15.2",
Expand Down
1 change: 1 addition & 0 deletions environment_tests/test-exports-tsc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"license": "MIT",
"dependencies": {
"@langchain/langgraph": "workspace:*",
"@langchain/langgraph-checkpoint": "workspace:*",
"@types/node": "^18.15.11",
"typescript": "latest"
}
Expand Down
1 change: 1 addition & 0 deletions environment_tests/test-exports-vercel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
},
"dependencies": {
"@langchain/langgraph": "workspace:*",
"@langchain/langgraph-checkpoint": "workspace:*",
"@types/node": "18.15.11",
"@types/react": "18.0.33",
"@types/react-dom": "18.0.11",
Expand Down
1 change: 1 addition & 0 deletions environment_tests/test-exports-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
},
"dependencies": {
"@langchain/langgraph": "workspace:*",
"@langchain/langgraph-checkpoint": "workspace:*",
"typescript": "^5.0.0",
"vite": "^4.2.0"
}
Expand Down

0 comments on commit 22e0e33

Please sign in to comment.