diff --git a/langchain/package.json b/langchain/package.json index 15cc5e73fbff..5ebd5cd37279 100644 --- a/langchain/package.json +++ b/langchain/package.json @@ -800,7 +800,7 @@ "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", - "conditional:api-docs": "if [ -z \"${SKIP_API_DOCS+x}\" ]; then echo SKIP_API_DOCS is unset; else yarn build:api-docs; fi", + "conditional:api-docs": "if [ '$SKIP_API_DOCS' != 'true' ]; then yarn build:api-docs; fi", "build:api-docs": "cd ../api-docs && yarn gen:typedoc", "lint": "NODE_OPTIONS=--max-old-space-size=4096 eslint src && dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts", "lint:fix": "yarn lint --fix",