Skip to content

Commit

Permalink
feat(cli): add detection for bun.lockb (#3111)
Browse files Browse the repository at this point in the history
  • Loading branch information
dqbd authored Jan 20, 2025
2 parents 0bdd27a + 2523989 commit ac64f50
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion libs/cli/langgraph_cli/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,10 +469,11 @@ def test_file(file_name):
except OSError:
return False

npm, yarn, pnpm = [
npm, yarn, pnpm, bun = [
test_file("package-lock.json"),
test_file("yarn.lock"),
test_file("pnpm-lock.yaml"),
test_file("bun.lockb"),
]

if yarn:
Expand All @@ -481,6 +482,8 @@ def test_file(file_name):
install_cmd = "pnpm i --frozen-lockfile"
elif npm:
install_cmd = "npm ci"
elif bun:
install_cmd = "bun i"
else:
install_cmd = "npm i"
store_config = config.get("store")
Expand Down
2 changes: 1 addition & 1 deletion libs/cli/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "langgraph-cli"
version = "0.1.67"
version = "0.1.68"
description = "CLI for interacting with LangGraph API"
authors = []
license = "MIT"
Expand Down

0 comments on commit ac64f50

Please sign in to comment.