build
yarn clean && yarn build:esm && yarn build:cjs && yarn create-entrypoints
clean
rm -rf dist/ && NODE_OPTIONS=--max-old-space-size=4096 yarn lc-build --config ./langchain.config.js --create-entrypoints --pre
build:esm
rm -f src/package.json && tsc --outDir dist/
build:cjs
echo '{}' > src/package.json && tsc --outDir dist-cjs/ -p tsconfig.cjs.json && yarn move-cjs-to-dist && rm -r dist-cjs src/package.json
test
cross-env NODE_OPTIONS=--experimental-vm-modules jest --passWithNoTests --testPathIgnorePatterns='\.int\.test.[tj]s' --testTimeout 30000
test:integration
cross-env NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\.int\.test.ts --testTimeout 100000
test:single
NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000
lint
NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/
lint:fix
yarn lint --fix
format
prettier --config .prettierrc --write "src"
format:check
prettier --config .prettierrc --check "src"
precommit
lint-staged
prepublish
yarn run build
create-entrypoints
yarn lc-build --config ./langchain.config.js --create-entrypoints
move-cjs-to-dist
yarn lc-build --config ./langchain.config.js --move-cjs-dist