Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs[patch]: Add yarn clean script to docs & run in build #3646

Merged
merged 2 commits into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions docs/api_refs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
"dev": "next dev -p 3001",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey there! 👋 I noticed that this PR includes changes to the build process and file structure, which could potentially impact dependencies (peer/dev/hard). I've flagged this for the maintainers to review. Great work on the PR! 🚀

"typedoc": "npx typedoc --options typedoc.json",
"build:scripts": "yarn typedoc && node ./scripts/update-typedoc-css.js",
"build": "yarn run build:deps && yarn build:scripts && next build",
"build:vercel": "yarn run build:deps --force && yarn build:scripts && next build",
"build": "yarn clean && yarn run build:deps && yarn build:scripts && next build",
"build:vercel": "yarn clean && yarn run build:deps --force && yarn build:scripts && next build",
"build:deps": "yarn run turbo:command build --filter=@langchain/core --filter=@langchain/anthropic --filter=@langchain/openai --filter=@langchain/community --filter=langchain --concurrency=1",
"start": "yarn build && next start -p 3001",
"lint": "next lint"
"lint": "next lint",
"clean": "rm -rf .next .turbo public/ && mkdir public"
},
"dependencies": {
"next": "14.0.1",
Expand Down
7 changes: 4 additions & 3 deletions docs/core_docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"scripts": {
"docusaurus": "docusaurus",
"start": "yarn build:typedoc && rimraf ./docs/api && NODE_OPTIONS=--max-old-space-size=7168 docusaurus start",
"build": "yarn build:typedoc && rimraf ./build && NODE_OPTIONS=--max-old-space-size=7168 DOCUSAURUS_SSR_CONCURRENCY=4 docusaurus build",
"build:vercel": "yarn build:typedoc:vercel && rimraf ./build && NODE_OPTIONS=--max-old-space-size=7168 DOCUSAURUS_SSR_CONCURRENCY=4 docusaurus build",
"build": "yarn clean && yarn build:typedoc && rimraf ./build && NODE_OPTIONS=--max-old-space-size=7168 DOCUSAURUS_SSR_CONCURRENCY=4 docusaurus build",
"build:vercel": "yarn clean && yarn build:typedoc:vercel && rimraf ./build && NODE_OPTIONS=--max-old-space-size=7168 DOCUSAURUS_SSR_CONCURRENCY=4 docusaurus build",
"build:typedoc": "yarn run turbo:command build --filter=api_refs",
"build:typedoc:vercel": "yarn run turbo:command build:vercel --filter=api_refs",
"swizzle": "docusaurus swizzle",
Expand All @@ -19,7 +19,8 @@
"lint:fix": "yarn lint --fix",
"precommit": "lint-staged",
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,md,mdx}\"",
"format:check": "prettier --check \"**/*.{js,jsx,ts,tsx,md,mdx}\""
"format:check": "prettier --check \"**/*.{js,jsx,ts,tsx,md,mdx}\"",
"clean": "rm -rf .docusaurus/ .turbo/ .build/"
},
"dependencies": {
"@docusaurus/core": "2.4.3",
Expand Down