fix(cli): pnpm support for sysinfo command, update gh template (#1489)

This commit is contained in:
David Duong
2025-08-05 01:21:18 +02:00
committed by GitHub
parent a8466b1f34
commit 679a1bebf8
3 changed files with 23 additions and 12 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@langchain/langgraph-cli": patch
---
Fix sysinfo command for PNPM
+16 -10
View File
@@ -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
+2 -2
View File
@@ -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(", ")
);
}