Skip to content

Commit c28303b

Browse files
authored
scripts[minor]infra[patch]: Remove deprecated build script (#6595)
1 parent d916fcd commit c28303b

File tree

47 files changed

+119
-1955
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+119
-1955
lines changed

langchain-core/package.json

+2-10
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,8 @@
1515
"homepage": "https://github.com/langchain-ai/langchainjs/tree/main/langchain-core/",
1616
"scripts": {
1717
"build": "yarn turbo:command build:internal --filter=@langchain/core",
18-
"build:internal": "yarn lc_build_v2 --create-entrypoints --pre --tree-shaking",
18+
"build:internal": "yarn lc_build --create-entrypoints --pre --tree-shaking",
1919
"clean": "rm -rf .turbo dist/",
20-
"build:deps": "yarn turbo build",
21-
"build:esm": "NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist/ && rimraf dist/tests dist/**/tests",
22-
"build:cjs": "NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist-cjs/ -p tsconfig.cjs.json && yarn move-cjs-to-dist && rimraf dist-cjs",
23-
"build:watch": "yarn create-entrypoints && tsc --outDir dist/ --watch",
24-
"build:scripts": "yarn create-entrypoints && yarn check-tree-shaking",
2520
"lint:eslint": "NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/",
2621
"lint:dpdm": "dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",
2722
"lint": "yarn lint:eslint && yarn lint:dpdm",
@@ -33,10 +28,7 @@
3328
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\.int\\.test.ts",
3429
"test:single": "NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000",
3530
"format": "prettier --config .prettierrc --write \"src\"",
36-
"format:check": "prettier --config .prettierrc --check \"src\"",
37-
"move-cjs-to-dist": "yarn lc-build --config ./langchain.config.js --move-cjs-dist",
38-
"create-entrypoints": "yarn lc-build --config ./langchain.config.js --create-entrypoints",
39-
"check-tree-shaking": "yarn lc-build --config ./langchain.config.js --tree-shaking"
31+
"format:check": "prettier --config .prettierrc --check \"src\""
4032
},
4133
"author": "LangChain",
4234
"license": "MIT",

langchain/package.json

+2-10
Original file line numberDiff line numberDiff line change
@@ -574,12 +574,7 @@
574574
"homepage": "https://github.com/langchain-ai/langchainjs/tree/main/langchain/",
575575
"scripts": {
576576
"build": "yarn turbo:command build:internal --filter=langchain",
577-
"build:internal": "yarn lc_build_v2 --create-entrypoints --pre --tree-shaking --gen-maps",
578-
"build:deps": "yarn run turbo:command build --filter=@langchain/openai --filter=@langchain/textsplitters --filter=@langchain/cohere --concurrency=1",
579-
"build:esm": "NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist/ && rimraf dist/tests dist/**/tests",
580-
"build:cjs": "NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist-cjs/ -p tsconfig.cjs.json && yarn move-cjs-to-dist && rimraf dist-cjs",
581-
"build:watch": "yarn create-entrypoints && tsc --outDir dist/ --watch",
582-
"build:scripts": "yarn create-entrypoints && yarn check-tree-shaking",
577+
"build:internal": "yarn lc_build --create-entrypoints --pre --tree-shaking --gen-maps",
583578
"lint:eslint": "NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/",
584579
"lint:dpdm": "dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",
585580
"lint": "yarn lint:eslint && yarn lint:dpdm",
@@ -593,10 +588,7 @@
593588
"test:integration": "yarn run build:deps && NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%",
594589
"test:single": "yarn run build:deps && NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000",
595590
"format": "prettier --config .prettierrc --write \"src\"",
596-
"format:check": "prettier --config .prettierrc --check \"src\"",
597-
"move-cjs-to-dist": "yarn lc-build --config ./langchain.config.js --move-cjs-dist",
598-
"create-entrypoints": "yarn lc-build --config ./langchain.config.js --create-entrypoints",
599-
"check-tree-shaking": "yarn lc-build --config ./langchain.config.js --tree-shaking"
591+
"format:check": "prettier --config .prettierrc --check \"src\""
600592
},
601593
"author": "LangChain",
602594
"license": "MIT",

libs/create-langchain-integration/template/package.json

+2-9
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@
1515
"homepage": "https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-INTEGRATION_NAME/",
1616
"scripts": {
1717
"build": "yarn turbo:command build:internal --filter=@langchain/INTEGRATION_NAME",
18-
"build:internal": "yarn lc_build_v2 --create-entrypoints --pre --tree-shaking",
19-
"build:esm": "NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist/ && rm -rf dist/tests dist/**/tests",
20-
"build:cjs": "NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist-cjs/ -p tsconfig.cjs.json && yarn move-cjs-to-dist && rm -rf dist-cjs",
21-
"build:watch": "yarn create-entrypoints && tsc --outDir dist/ --watch",
22-
"build:scripts": "yarn create-entrypoints && yarn check-tree-shaking",
18+
"build:internal": "yarn lc_build --create-entrypoints --pre --tree-shaking",
2319
"lint:eslint": "NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/",
2420
"lint:dpdm": "dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",
2521
"lint": "yarn lint:eslint && yarn lint:dpdm",
@@ -31,10 +27,7 @@
3127
"test:single": "NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000",
3228
"test:int": "NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%",
3329
"format": "prettier --config .prettierrc --write \"src\"",
34-
"format:check": "prettier --config .prettierrc --check \"src\"",
35-
"move-cjs-to-dist": "yarn lc-build --config ./langchain.config.js --move-cjs-dist",
36-
"create-entrypoints": "yarn lc-build --config ./langchain.config.js --create-entrypoints",
37-
"check-tree-shaking": "yarn lc-build --config ./langchain.config.js --tree-shaking"
30+
"format:check": "prettier --config .prettierrc --check \"src\""
3831
},
3932
"author": "LangChain",
4033
"license": "MIT",

libs/langchain-anthropic/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"homepage": "https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-anthropic/",
1616
"scripts": {
1717
"build": "yarn turbo:command build:internal --filter=@langchain/anthropic",
18-
"build:internal": "yarn lc_build_v2 --create-entrypoints --pre --tree-shaking --gen-maps",
18+
"build:internal": "yarn lc_build --create-entrypoints --pre --tree-shaking --gen-maps",
1919
"lint:eslint": "NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/",
2020
"lint:dpdm": "dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",
2121
"lint": "yarn lint:eslint && yarn lint:dpdm",

libs/langchain-aws/package.json

+2-9
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@
1515
"homepage": "https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-aws/",
1616
"scripts": {
1717
"build": "yarn turbo:command build:internal --filter=@langchain/aws",
18-
"build:internal": "yarn lc_build_v2 --create-entrypoints --pre --tree-shaking",
19-
"build:esm": "NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist/ && rm -rf dist/tests dist/**/tests",
20-
"build:cjs": "NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist-cjs/ -p tsconfig.cjs.json && yarn move-cjs-to-dist && rm -rf dist-cjs",
21-
"build:watch": "yarn create-entrypoints && tsc --outDir dist/ --watch",
22-
"build:scripts": "yarn create-entrypoints && yarn check-tree-shaking",
18+
"build:internal": "yarn lc_build --create-entrypoints --pre --tree-shaking",
2319
"lint:eslint": "NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/",
2420
"lint:dpdm": "dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",
2521
"lint": "yarn lint:eslint && yarn lint:dpdm",
@@ -31,10 +27,7 @@
3127
"test:single": "NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000",
3228
"test:int": "NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%",
3329
"format": "prettier --config .prettierrc --write \"src\"",
34-
"format:check": "prettier --config .prettierrc --check \"src\"",
35-
"move-cjs-to-dist": "yarn lc-build --config ./langchain.config.js --move-cjs-dist",
36-
"create-entrypoints": "yarn lc-build --config ./langchain.config.js --create-entrypoints",
37-
"check-tree-shaking": "yarn lc-build --config ./langchain.config.js --tree-shaking"
30+
"format:check": "prettier --config .prettierrc --check \"src\""
3831
},
3932
"author": "LangChain",
4033
"license": "MIT",

libs/langchain-azure-cosmosdb/package.json

+4-10
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,20 @@
1414
},
1515
"homepage": "https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-azure-cosmosdb/",
1616
"scripts": {
17-
"build": "yarn clean && yarn build:esm && yarn build:cjs && yarn build:scripts",
18-
"build:esm": "NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist/ && rm -rf dist/tests dist/**/tests",
19-
"build:cjs": "NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist-cjs/ -p tsconfig.cjs.json && yarn move-cjs-to-dist && rm -rf dist-cjs",
20-
"build:watch": "yarn create-entrypoints && tsc --outDir dist/ --watch",
21-
"build:scripts": "yarn create-entrypoints && yarn check-tree-shaking",
17+
"build": "yarn turbo:command build:internal --filter=@langchain/azure-cosmosdb",
18+
"build:internal": "yarn lc_build --create-entrypoints --pre --tree-shaking",
2219
"lint:eslint": "NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/",
2320
"lint:dpdm": "dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",
2421
"lint": "yarn lint:eslint && yarn lint:dpdm",
2522
"lint:fix": "yarn lint:eslint --fix && yarn lint:dpdm",
26-
"clean": "rm -rf dist/ && NODE_OPTIONS=--max-old-space-size=4096 yarn lc-build --config ./langchain.config.js --create-entrypoints --pre",
23+
"clean": "rm -rf dist/ .turbo",
2724
"prepack": "yarn build",
2825
"test": "NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\\.int\\.test.ts --testTimeout 30000 --maxWorkers=50%",
2926
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\.int\\.test.ts",
3027
"test:single": "NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000",
3128
"test:int": "NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%",
3229
"format": "prettier --config .prettierrc --write \"src\"",
33-
"format:check": "prettier --config .prettierrc --check \"src\"",
34-
"move-cjs-to-dist": "yarn lc-build --config ./langchain.config.js --move-cjs-dist",
35-
"create-entrypoints": "yarn lc-build --config ./langchain.config.js --create-entrypoints",
36-
"check-tree-shaking": "yarn lc-build --config ./langchain.config.js --tree-shaking"
30+
"format:check": "prettier --config .prettierrc --check \"src\""
3731
},
3832
"author": "LangChain",
3933
"license": "MIT",

libs/langchain-azure-dynamic-sessions/package.json

+4-10
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,20 @@
1414
},
1515
"homepage": "https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-INTEGRATION_NAME/",
1616
"scripts": {
17-
"build": "yarn clean && yarn build:esm && yarn build:cjs && yarn build:scripts",
18-
"build:esm": "NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist/ && rm -rf dist/tests dist/**/tests",
19-
"build:cjs": "NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist-cjs/ -p tsconfig.cjs.json && yarn move-cjs-to-dist && rm -rf dist-cjs",
20-
"build:watch": "yarn create-entrypoints && tsc --outDir dist/ --watch",
21-
"build:scripts": "yarn create-entrypoints && yarn check-tree-shaking",
17+
"build": "yarn turbo:command build:internal --filter=@langchain/azure-dynamic-sessions",
18+
"build:internal": "yarn lc_build --create-entrypoints --pre --tree-shaking",
2219
"lint:eslint": "NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/",
2320
"lint:dpdm": "dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",
2421
"lint": "yarn lint:eslint && yarn lint:dpdm",
2522
"lint:fix": "yarn lint:eslint --fix && yarn lint:dpdm",
26-
"clean": "rm -rf dist/ && NODE_OPTIONS=--max-old-space-size=4096 yarn lc-build --config ./langchain.config.js --create-entrypoints --pre",
23+
"clean": "rm -rf .turbo dist/",
2724
"prepack": "yarn build",
2825
"test": "NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\\.int\\.test.ts --testTimeout 30000 --maxWorkers=50%",
2926
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\.int\\.test.ts",
3027
"test:single": "NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000",
3128
"test:int": "NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%",
3229
"format": "prettier --config .prettierrc --write \"src\"",
33-
"format:check": "prettier --config .prettierrc --check \"src\"",
34-
"move-cjs-to-dist": "yarn lc-build --config ./langchain.config.js --move-cjs-dist",
35-
"create-entrypoints": "yarn lc-build --config ./langchain.config.js --create-entrypoints",
36-
"check-tree-shaking": "yarn lc-build --config ./langchain.config.js --tree-shaking"
30+
"format:check": "prettier --config .prettierrc --check \"src\""
3731
},
3832
"author": "LangChain",
3933
"license": "MIT",

libs/langchain-azure-openai/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
"scripts": {
1616
"build": "yarn turbo:command build:internal --filter=@langchain/azure-openai",
17-
"build:internal": "yarn lc_build_v2 --create-entrypoints --pre --tree-shaking",
17+
"build:internal": "yarn lc_build --create-entrypoints --pre --tree-shaking",
1818
"lint:eslint": "NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/",
1919
"lint:dpdm": "dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",
2020
"lint": "yarn lint:eslint && yarn lint:dpdm",

libs/langchain-baidu-qianfan/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"homepage": "https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-baidu-qianfan/",
1616
"scripts": {
1717
"build": "yarn turbo:command build:internal --filter=@langchain/baidu-qianfan",
18-
"build:internal": "yarn lc_build_v2 --create-entrypoints --pre --tree-shaking",
18+
"build:internal": "yarn lc_build --create-entrypoints --pre --tree-shaking",
1919
"lint:eslint": "NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/",
2020
"lint:dpdm": "dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",
2121
"lint": "yarn lint:eslint && yarn lint:dpdm",

libs/langchain-cloudflare/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"homepage": "https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-cloudflare/",
1616
"scripts": {
1717
"build": "yarn turbo:command build:internal --filter=@langchain/cloudflare",
18-
"build:internal": "yarn lc_build_v2 --create-entrypoints --pre --tree-shaking",
18+
"build:internal": "yarn lc_build --create-entrypoints --pre --tree-shaking",
1919
"lint:eslint": "NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/",
2020
"lint:dpdm": "dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",
2121
"lint": "yarn lint:eslint && yarn lint:dpdm",

libs/langchain-cohere/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"homepage": "https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-cohere/",
1616
"scripts": {
1717
"build": "yarn turbo:command build:internal --filter=@langchain/cohere",
18-
"build:internal": "yarn lc_build_v2 --create-entrypoints --pre --tree-shaking",
18+
"build:internal": "yarn lc_build --create-entrypoints --pre --tree-shaking",
1919
"lint:eslint": "NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/",
2020
"lint:dpdm": "dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",
2121
"lint": "yarn lint:eslint && yarn lint:dpdm",

libs/langchain-community/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"homepage": "https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-community/",
1616
"scripts": {
1717
"build": "yarn turbo:command build:internal --filter=@langchain/community",
18-
"build:internal": "yarn lc_build_v2 --create-entrypoints --pre --tree-shaking --gen-maps",
18+
"build:internal": "yarn lc_build --create-entrypoints --pre --tree-shaking --gen-maps",
1919
"lint:eslint": "NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/",
2020
"lint:dpdm": "dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",
2121
"lint": "yarn lint:eslint && yarn lint:dpdm",

libs/langchain-exa/package.json

+2-10
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,7 @@
1515
"homepage": "https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-exa/",
1616
"scripts": {
1717
"build": "yarn turbo:command build:internal --filter=@langchain/exa",
18-
"build:internal": "yarn lc_build_v2 --create-entrypoints --pre --tree-shaking",
19-
"build:deps": "yarn run turbo:command build --filter=@langchain/core",
20-
"build:esm": "NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist/ && rm -rf dist/tests dist/**/tests",
21-
"build:cjs": "NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist-cjs/ -p tsconfig.cjs.json && yarn move-cjs-to-dist && rm -rf dist-cjs",
22-
"build:watch": "yarn create-entrypoints && tsc --outDir dist/ --watch",
23-
"build:scripts": "yarn create-entrypoints && yarn check-tree-shaking",
18+
"build:internal": "yarn lc_build --create-entrypoints --pre --tree-shaking",
2419
"lint:eslint": "NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/",
2520
"lint:dpdm": "dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",
2621
"lint": "yarn lint:eslint && yarn lint:dpdm",
@@ -32,10 +27,7 @@
3227
"test:single": "NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000",
3328
"test:int": "NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%",
3429
"format": "prettier --config .prettierrc --write \"src\"",
35-
"format:check": "prettier --config .prettierrc --check \"src\"",
36-
"move-cjs-to-dist": "yarn lc-build --config ./langchain.config.js --move-cjs-dist",
37-
"create-entrypoints": "yarn lc-build --config ./langchain.config.js --create-entrypoints",
38-
"check-tree-shaking": "yarn lc-build --config ./langchain.config.js --tree-shaking"
30+
"format:check": "prettier --config .prettierrc --check \"src\""
3931
},
4032
"author": "LangChain",
4133
"license": "MIT",

0 commit comments

Comments
 (0)