@langchain/community

v0.0.57
Third-party integrations for LangChain.js

lint

yarn lint:eslint && yarn lint:dpdm

test

yarn run build:deps && NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\.int\.test.ts --testTimeout 30000 --maxWorkers=50%

build

yarn run build:deps && yarn clean && yarn build:esm && yarn build:cjs && yarn build:scripts

clean

rm -rf dist/ && NODE_OPTIONS=--max-old-space-size=4096 yarn lc-build --config ./langchain.config.js --create-entrypoints --pre

format

prettier --config .prettierrc --write "src"

prepack

yarn build

lint:fix

yarn lint:eslint --fix && yarn lint:dpdm

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

build:esm

NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist/ && rm -rf dist/tests dist/**/tests

lint:dpdm

dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts

build:deps

yarn run turbo:command build --filter=@langchain/core --filter=@langchain/openai --concurrency=1

test:watch

yarn run build:deps && NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\.int\.test.ts

build:watch

yarn create-entrypoints && tsc --outDir dist/ --watch

lint:eslint

NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/

test:single

yarn run build:deps && NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000

format:check

prettier --config .prettierrc --check "src"

build:scripts

yarn create-entrypoints && yarn check-tree-shaking

move-cjs-to-dist

yarn lc-build --config ./langchain.config.js --move-cjs-dist

test:integration

NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\.int\.test.ts --testTimeout 100000 --maxWorkers=50%

check-tree-shaking

yarn lc-build --config ./langchain.config.js --tree-shaking

create-entrypoints

yarn lc-build --config ./langchain.config.js --create-entrypoints
npm i @langchain/[email protected]

Metadata

  • MIT
  • >=18
  • LangChain
  • released 5/14/2024

Downloads