Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core[infra]: Adds turbo to core #3551

Merged
merged 1 commit into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/api_refs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dev": "next dev -p 3001",
"typedoc": "npx typedoc --options typedoc.json",
"build:scripts": "node ./scripts/generate-api-refs.js && node ./scripts/update-typedoc-css.js",
"build": "yarn turbo run build:next",
"build": "yarn turbo run build --filter=@langchain/core --no-cache && yarn turbo run build:next",
"build:next": "next build",
"start": "yarn build && next start -p 3001",
"lint": "next lint"
Expand Down
4 changes: 3 additions & 1 deletion langchain-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"url": "[email protected]:langchain-ai/langchainjs.git"
},
"scripts": {
"build": "yarn clean && yarn build:esm && yarn build:cjs && yarn build:scripts",
"build": "yarn turbo run build:scripts",
"build:envs": "yarn build:esm && yarn build:cjs",
"build:esm": "NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist/ && rimraf dist/tests dist/**/tests",
"build:cjs": "NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist-cjs/ -p tsconfig.cjs.json && node scripts/move-cjs-to-dist.js && rimraf dist-cjs",
"build:watch": "node scripts/create-entrypoints.js && tsc --outDir dist/ --watch",
Expand Down Expand Up @@ -61,6 +62,7 @@
"prettier": "^2.8.3",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey there! I noticed that the latest PR added a new dev dependency "turbo". This comment is to flag the change for maintainers to review. Great work on the PR!

"release-it": "^15.10.1",
"rimraf": "^5.0.1",
"turbo": "latest",
"typescript": "^5.0.0"
},
"publishConfig": {
Expand Down
23 changes: 23 additions & 0 deletions langchain-core/turbo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"$schema": "https://turbo.build/schema.json",
"extends": ["//"],
"pipeline": {
"build:scripts": {
"outputs": [
"tsconfig.json",
"package.json",
"**/*.js",
"**/*.d.ts",
"**/*.cjs",
"dist-cjs/**"
],
"dependsOn": ["build:envs"]
},
"build:envs": {
"dependsOn": ["clean"]
},
"clean": {
"outputs": [".turbo/**", "dist/**"]
}
}
}
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8045,6 +8045,7 @@ __metadata:
prettier: ^2.8.3
release-it: ^15.10.1
rimraf: ^5.0.1
turbo: latest
typescript: ^5.0.0
uuid: ^9.0.0
zod: ^3.22.3
Expand Down