Skip to content

Commit

Permalink
Finish setting up test-exports-cf package scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
nfcampos committed Apr 9, 2023
1 parent 0d40202 commit 56082bd
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 5 additions & 1 deletion test-exports-cf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
7 changes: 7 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@
"outputs": []
},
"test": {
"outputs": [],
"dependsOn": [
"^build"
]
},
"test:integration": {
"outputs": [],
"dependsOn": [
"^build"
]
Expand Down
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 56082bd

Please sign in to comment.