diff --git a/package.json b/package.json index 61450615..ab5c5216 100644 --- a/package.json +++ b/package.json @@ -25,10 +25,10 @@ "format:check": "turbo run format:check", "lint": "turbo run lint", "lint:fix": "yarn lint -- --fix", - "test": "yarn run test:unit && yarn run test:int", + "test": "turbo run test test:integration", "test:unit": "turbo run test", - "test:int": "yarn workspace langchain run test:integration", - "publish": "bash scripts/release-branch.sh && turbo run build lint test && yarn run test:int && yarn workspace langchain run release && echo '🔗 Open https://github.com/hwchase17/langchainjs/compare/release?expand=1 and merge the release PR'", + "test:int": "turbo run test:integration", + "publish": "bash scripts/release-branch.sh && turbo run build lint test test:integration && yarn workspace langchain run release && echo '🔗 Open https://github.com/hwchase17/langchainjs/compare/release?expand=1 and merge the release PR'", "example": "turbo run start --filter langchain-examples --", "prepare": "husky install", "precommit": "turbo run precommit", diff --git a/test-exports-cf/package.json b/test-exports-cf/package.json index fa92c641..f8e4746a 100644 --- a/test-exports-cf/package.json +++ b/test-exports-cf/package.json @@ -7,10 +7,14 @@ "vitest": "^0.29.8", "wrangler": "2.14.0" }, + "dependencies": { + "langchain": "workspace:*" + }, "private": true, "scripts": { "start": "wrangler dev", "deploy": "wrangler publish", - "test": "vitest" + "build": "wrangler publish --dry-run --outdir=dist", + "test:integration": "vitest run" } } diff --git a/turbo.json b/turbo.json index 9477d5d9..47a6c5f4 100644 --- a/turbo.json +++ b/turbo.json @@ -32,6 +32,13 @@ "outputs": [] }, "test": { + "outputs": [], + "dependsOn": [ + "^build" + ] + }, + "test:integration": { + "outputs": [], "dependsOn": [ "^build" ] diff --git a/yarn.lock b/yarn.lock index a82244a7..655ef083 100644 --- a/yarn.lock +++ b/yarn.lock @@ -17669,6 +17669,7 @@ __metadata: resolution: "test-exports-cf@workspace:test-exports-cf" dependencies: "@cloudflare/workers-types": ^4.20230321.0 + langchain: "workspace:*" typescript: ^5.0.3 vitest: ^0.29.8 wrangler: 2.14.0