mirror of
https://github.com/langchain-ai/langgraphjs.git
synced 2026-07-22 09:05:28 -04:00
fix(cli): pnpm support for sysinfo command, update gh template (#1489)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@langchain/langgraph-cli": patch
|
||||
---
|
||||
|
||||
Fix sysinfo command for PNPM
|
||||
@@ -103,16 +103,22 @@ body:
|
||||
description: |
|
||||
Please share your system info with us.
|
||||
|
||||
Package Info (`npm ls` / `yarn info` / `pnpm list`)
|
||||
Platform (Windows / Linux / Mac)
|
||||
Node version
|
||||
Package Manager (Yarn / Npm / Pnpm / Bun) and version of the package manager
|
||||
placeholder: |
|
||||
Package Info (`npm ls` / `yarn info` / `pnpm list`)
|
||||
Platform (Windows / Linux / Mac)
|
||||
Node version
|
||||
Package Manager (Yarn / Npm / Pnpm / Bun) and version of the package manager
|
||||
Run `npx @langchain/langgraph-cli@latest sysinfo` and paste the output here.
|
||||
|
||||
Don't forget to include any other relevant packages you're using (if you're not sure what's relevant, you can paste the entire output of `npm ls` / `yarn info` / `pnpm list`).
|
||||
Alternatively, you can also paste the following:
|
||||
|
||||
- Package Info (`npm ls` / `yarn info` / `pnpm list`)
|
||||
- Platform (Windows / Linux / Mac)
|
||||
- Node version
|
||||
- Package Manager (Yarn / NPM / PNPM / Bun) and version of the package manager
|
||||
placeholder: |
|
||||
Run `npx @langchain/langgraph-cli@latest sysinfo` and paste the output here.
|
||||
|
||||
Alternatively, you can also paste the following:
|
||||
|
||||
- Package Info (`npm ls` / `yarn info` / `pnpm list`)
|
||||
- Platform (Windows / Linux / Mac)
|
||||
- Node version
|
||||
- Package Manager (Yarn / NPM / PNPM / Bun) and version of the package manager
|
||||
validations:
|
||||
required: true
|
||||
|
||||
@@ -74,12 +74,12 @@ builder
|
||||
const info = await getPackageInfo(pkg);
|
||||
if (!info) continue;
|
||||
|
||||
const targetRegex = new RegExp(escapeRegExp(pkg) + "@[^\\s]*", "g");
|
||||
const targetRegex = new RegExp(escapeRegExp(pkg) + "[@\\s][^\\s]*", "g");
|
||||
console.log(
|
||||
pkg,
|
||||
"->",
|
||||
gatherMatch(info, targetRegex)
|
||||
.map((i) => i.slice(pkg.length))
|
||||
.map((i) => i.slice(pkg.length).trim())
|
||||
.join(", ")
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user