Skip to content

Commit

Permalink
core[infra]: Adds turbo to core (#3551)
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul authored Dec 5, 2023
1 parent dfd3271 commit a3f33a6
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
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",
"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

2 comments on commit a3f33a6

@vercel
Copy link

@vercel vercel bot commented on a3f33a6 Dec 5, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

langchainjs-docs – ./docs/core_docs/

js.langchain.com
langchainjs-docs-git-main-langchain.vercel.app
langchainjs-docs-langchain.vercel.app
langchainjs-docs-ruddy.vercel.app

@vercel
Copy link

@vercel vercel bot commented on a3f33a6 Dec 5, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.