Skip to content

Commit

Permalink
use shell script for conditional check
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul committed Nov 6, 2023
1 parent 29c2bae commit a3f2c7a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions api-docs/typedoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"../langchain/src/embeddings/googlevertexai.ts",
"../langchain/src/embeddings/googlepalm.ts",
"../langchain/src/embeddings/minimax.ts",
"../langchain/src/embeddings/voyage.ts",
"../langchain/src/embeddings/llama_cpp.ts",
"../langchain/src/llms/load.ts",
"../langchain/src/llms/base.ts",
Expand Down
3 changes: 1 addition & 2 deletions langchain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -800,8 +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 [ '$SKIP_API_DOCS' != 'true' ]; then yarn build:api-docs; fi",
"build:api-docs": "cd ../api-docs && yarn gen:typedoc",
"conditional:api-docs": "bash scripts/build-api-refs.sh",
"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",
"precommit": "lint-staged",
Expand Down
5 changes: 5 additions & 0 deletions langchain/scripts/build-api-refs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

if [ "$SKIP_API_DOCS" != "true" ]; then
cd ../api-docs && yarn gen:typedoc
fi

0 comments on commit a3f2c7a

Please sign in to comment.