-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
infra[patch]: Use latest turbo repo and build setup (#271)
* infra[patch]: Use latest turbo repo and build setup * bruh * fix script * try this * cr * cr * cr * cr * cr * cr * cr * new unit test * cr * drop ubuntu test env * try sum new for cache * bruh * fast fail false * cr * cr * cr * bump turbo version * tmp try canary * cr * cr * cr * cr * cr * upgrade langchain/scripts * cr * cr * cr * cr
- Loading branch information
1 parent
653887d
commit d5c8a51
Showing
7 changed files
with
149 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,26 +13,19 @@ | |
"url": "[email protected]:langchain-ai/langgraphjs.git" | ||
}, | ||
"scripts": { | ||
"build": "yarn clean && yarn build:esm && yarn build:cjs && yarn build:scripts", | ||
"build:esm": "NODE_OPTIONS=--max-old-space-size=4096 rm -f src/package.json && tsc --outDir dist/", | ||
"build:cjs": "NODE_OPTIONS=--max-old-space-size=4096 echo '{}' > src/package.json && tsc --outDir dist-cjs/ -p tsconfig.cjs.json && yarn move-cjs-to-dist && rm -rf dist-cjs/ src/package.json", | ||
"build:watch": "yarn create-entrypoints && tsc --outDir dist/ --watch", | ||
"build:scripts": "yarn create-entrypoints && yarn check-tree-shaking", | ||
"build": "yarn turbo:command build:internal --filter=@langchain/langgraph", | ||
"build:internal": "yarn lc_build_v2 --create-entrypoints --pre --tree-shaking", | ||
"lint:eslint": "NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/", | ||
"lint:dpdm": "dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts", | ||
"lint": "yarn lint:eslint && yarn lint:dpdm", | ||
"lint:fix": "yarn lint:eslint --fix && yarn lint:dpdm", | ||
"clean": "rm -rf dist/ dist-cjs/ src/package.json && NODE_OPTIONS=--max-old-space-size=4096 yarn create-entrypoints -- --pre", | ||
"prepack": "yarn build", | ||
"test": "NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\\.int\\.test.ts --testTimeout 30000 --maxWorkers=50%", | ||
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\.int\\.test.ts", | ||
"test:single": "NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000", | ||
"test:int": "NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%", | ||
"format": "prettier --config .prettierrc --write \"src\"", | ||
"format:check": "prettier --config .prettierrc --check \"src\"", | ||
"move-cjs-to-dist": "yarn lc-build --config ./langchain.config.js --move-cjs-dist", | ||
"create-entrypoints": "yarn lc-build --config ./langchain.config.js --create-entrypoints", | ||
"check-tree-shaking": "yarn lc-build --config ./langchain.config.js --tree-shaking" | ||
"format:check": "prettier --config .prettierrc --check \"src\"" | ||
}, | ||
"author": "LangChain", | ||
"license": "MIT", | ||
|
@@ -46,7 +39,7 @@ | |
"@langchain/anthropic": "^0.2.6", | ||
"@langchain/community": "^0.2.19", | ||
"@langchain/openai": "^0.2.4", | ||
"@langchain/scripts": "^0.0.18", | ||
"@langchain/scripts": "0.0.19-rc.0", | ||
"@swc/core": "^1.3.90", | ||
"@swc/jest": "^0.2.29", | ||
"@tsconfig/recommended": "^1.0.3", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"extends": ["//"], | ||
"tasks": { | ||
"build": { | ||
"outputs": ["**/dist/**"] | ||
}, | ||
"build:internal": { | ||
"dependsOn": ["^build:internal"] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.