add page for monorepo support in LGP#268
Conversation
|
Preview ID generated: preview-isaacm-1756422678-de05a32 |
|
|
||
| ## LangGraph.json Configuration | ||
|
|
||
| Place your `langgraph.json` file in your agent directory (not the monorepo root) and structure it properly: |
There was a problem hiding this comment.
prefer something like "and structure it in the following way:"
will also let the docs folks do all the wordsmithing
There was a problem hiding this comment.
are we removing support for putting it in the root of your directory?
There was a problem hiding this comment.
No, you can still do that this just makes the devex better for JS people to not have to use postinstall scripts and whatnot
There was a problem hiding this comment.
Maybe something like
"Place the langgraph.json file in your agent’s directory (not in the monorepo root). Ensure the file follows the required structure:"
|
|
||
| 2. **Use relative paths for Python**: For Python monorepos, use relative paths like `"../../shared-package"` in the `dependencies` array. | ||
|
|
||
| 3. **Leverage workspace features for JS**: For JavaScript/TypeScript, use your package manager's workspace features to manage dependencies between packages. |
There was a problem hiding this comment.
uv also supports this fyi
There was a problem hiding this comment.
yeah, you have to call uv sync though right? like we call uv pip install, which I don't think does this?
William FH (hinthornw)
left a comment
There was a problem hiding this comment.
The language here means this: https://github.com/langchain-ai/langgraph-example-monorepo would no longer be considered a good practice right?
|
Preview ID generated: preview-isaacm-1756500520-81a76bb |
Kathryn May (katmayb)
left a comment
There was a problem hiding this comment.
Just added some suggestions from a docs perspective, otherwise feel free to merge when this is ready.
|
|
||
| ## LangGraph.json Configuration | ||
|
|
||
| Place your `langgraph.json` file in your agent directory (not the monorepo root) and structure it properly: |
There was a problem hiding this comment.
Maybe something like
"Place the langgraph.json file in your agent’s directory (not in the monorepo root). Ensure the file follows the required structure:"
|
|
||
| ## Repository Structure | ||
|
|
||
| <Tabs> |
There was a problem hiding this comment.
Hey Isaac Francisco (@isahers1), I'm going to swap out the <Tabs> structure for <CodeGroup> in the LGP docs gradually, which means that when a user selects JS all the code blocks on the page will sync to that. If you have time, can you switch these out for the code group structure? Here's an example:
docs/src/langsmith/annotate-code.mdx
Line 34 in 3478171
If not, I can update later 👍
|
Preview ID generated: preview-isaacm-1756924815-f8eb81a |
Co-authored-by: Kathryn May <44557882+katmayb@users.noreply.github.com>
Co-authored-by: Kathryn May <44557882+katmayb@users.noreply.github.com>
Co-authored-by: Kathryn May <44557882+katmayb@users.noreply.github.com>
Co-authored-by: Kathryn May <44557882+katmayb@users.noreply.github.com>
Co-authored-by: Kathryn May <44557882+katmayb@users.noreply.github.com>
Co-authored-by: Kathryn May <44557882+katmayb@users.noreply.github.com>
Co-authored-by: Kathryn May <44557882+katmayb@users.noreply.github.com>
Co-authored-by: Kathryn May <44557882+katmayb@users.noreply.github.com>
Co-authored-by: Kathryn May <44557882+katmayb@users.noreply.github.com>
|
Preview ID generated: preview-isaacm-1757013395-4a89916 |
|
Preview ID generated: preview-isaacm-1757014115-7597851 |
No description provided.