Skip to content

Commit

Permalink
export tests: bump ts, pass root pkg json, add core resoultion worksp…
Browse files Browse the repository at this point in the history
…ace omn all tests
  • Loading branch information
bracesproul committed May 23, 2024
1 parent e2ac15a commit 679dd9e
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 10 deletions.
7 changes: 7 additions & 0 deletions environment_tests/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ services:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true"
working_dir: /app
volumes:
- ../package.json:/package.json
- ../yarn.lock:/root/yarn.lock
- ../.yarnrc.yml:/root/.yarnrc.yml
- ../.yarn:/root/.yarn
Expand All @@ -26,6 +27,7 @@ services:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true"
working_dir: /app
volumes:
- ../package.json:/package.json
- ../yarn.lock:/root/yarn.lock
- ../.yarnrc.yml:/root/.yarnrc.yml
- ../.yarn:/root/.yarn
Expand All @@ -45,6 +47,7 @@ services:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true"
working_dir: /app
volumes:
- ../package.json:/package.json
- ../yarn.lock:/root/yarn.lock
- ../.yarnrc.yml:/root/.yarnrc.yml
- ../.yarn:/root/.yarn
Expand All @@ -64,6 +67,7 @@ services:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true"
working_dir: /app
volumes:
- ../package.json:/package.json
- ../yarn.lock:/root/yarn.lock
- ../.yarnrc.yml:/root/.yarnrc.yml
- ../.yarn:/root/.yarn
Expand All @@ -83,6 +87,7 @@ services:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true"
working_dir: /app
volumes:
- ../package.json:/package.json
- ../yarn.lock:/root/yarn.lock
- ../.yarnrc.yml:/root/.yarnrc.yml
- ../.yarn:/root/.yarn
Expand All @@ -102,6 +107,7 @@ services:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true"
working_dir: /app
volumes:
- ../package.json:/package.json
- ../yarn.lock:/root/yarn.lock
- ../.yarnrc.yml:/root/.yarnrc.yml
- ../.yarn:/root/.yarn
Expand All @@ -121,6 +127,7 @@ services:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true"
working_dir: /app
volumes:
- ../package.json:/package.json
- ../yarn.lock:/root/yarn.lock
- ../.yarnrc.yml:/root/.yarnrc.yml
- ../.yarn:/root/.yarn
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 @@ -29,6 +29,8 @@ mkdir -p ./.yarn
cp -r ../root/.yarn/!(berry|cache) ./.yarn
cp ../root/yarn.lock ../root/.yarnrc.yml .

cp ../package.json .

yarn plugin import workspace-tools
yarn workspaces focus --production

Expand Down
5 changes: 4 additions & 1 deletion environment_tests/test-exports-bun/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
"devDependencies": {
"@tsconfig/recommended": "^1.0.3",
"@types/node": "^18.15.11",
"typescript": "^5.0.0"
"typescript": "^5.4.5"
},
"resolutions": {
"@langchain/core": "workspace:*"
}
}
5 changes: 4 additions & 1 deletion environment_tests/test-exports-cf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"langchain": "workspace:*",
"wrangler": "3.7.0",
"vitest": "0.34.3",
"typescript": "^5.0.3"
"typescript": "^5.4.5"
},
"private": true,
"scripts": {
Expand All @@ -24,5 +24,8 @@
"build": "wrangler deploy --dry-run --outdir=dist",
"test": "vitest run **/*.unit.test.ts",
"test:integration": "vitest run **/*.int.test.ts"
},
"resolutions": {
"@langchain/core": "workspace:*"
}
}
5 changes: 4 additions & 1 deletion environment_tests/test-exports-cjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,13 @@
"d3-dsv": "2",
"hnswlib-node": "^3.0.0",
"langchain": "workspace:*",
"typescript": "^5.0.0"
"typescript": "^5.4.5"
},
"devDependencies": {
"@types/node": "^18.15.11",
"prettier": "^2.8.3"
},
"resolutions": {
"@langchain/core": "workspace:*"
}
}
5 changes: 4 additions & 1 deletion environment_tests/test-exports-esbuild/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@
"esbuild": "^0.17.18",
"hnswlib-node": "^3.0.0",
"langchain": "workspace:*",
"typescript": "^5.0.0"
"typescript": "^5.4.5"
},
"devDependencies": {
"@types/node": "^18.15.11",
"prettier": "^2.8.3"
},
"resolutions": {
"@langchain/core": "workspace:*"
}
}
5 changes: 4 additions & 1 deletion environment_tests/test-exports-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,13 @@
"d3-dsv": "2",
"hnswlib-node": "^3.0.0",
"langchain": "workspace:*",
"typescript": "^5.0.0"
"typescript": "^5.4.5"
},
"devDependencies": {
"@types/node": "^18.15.11",
"prettier": "^2.8.3"
},
"resolutions": {
"@langchain/core": "workspace:*"
}
}
2 changes: 1 addition & 1 deletion environment_tests/test-exports-tsc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
"prettier": "^2.8.3"
},
"resolutions": {
"@langchain/core": "~0.2.0"
"@langchain/core": "workspace:*"
}
}
4 changes: 2 additions & 2 deletions environment_tests/test-exports-vercel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
"next": "13.4.9",
"react": "18.2.0",
"react-dom": "18.2.0",
"typescript": "^5.0.0"
"typescript": "^5.4.5"
},
"resolutions": {
"@langchain/core": "~0.2.0"
"@langchain/core": "workspace:*"
}
}
4 changes: 2 additions & 2 deletions environment_tests/test-exports-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
"@langchain/core": "workspace:*",
"@langchain/openai": "workspace:*",
"langchain": "workspace:*",
"typescript": "^5.0.0",
"typescript": "^5.4.5",
"vite": "^4.2.0"
},
"resolutions": {
"@langchain/core": "~0.2.0"
"@langchain/core": "workspace:*"
}
}

0 comments on commit 679dd9e

Please sign in to comment.