From 59e51ac097175e22b5116f768035eebf13f87e4f Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Sat, 28 Feb 2026 18:06:39 +0000 Subject: [PATCH] nit workmux cli --- scripts/worktree-env | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/worktree-env b/scripts/worktree-env index 0c3c56dea3..c2252754fa 100755 --- a/scripts/worktree-env +++ b/scripts/worktree-env @@ -88,6 +88,15 @@ if [[ -n "$main_repo_root" && -d "$main_repo_root/frontend/node_modules" ]]; the echo "Copied frontend/node_modules (with symlinks preserved)" fi +# --- Install cli deps and generate client --- +if [[ -n "$main_repo_root" && -d "$main_repo_root/cli/node_modules" ]]; then + cp -a "$main_repo_root/cli/node_modules" cli/ + echo "Copied cli/node_modules (with symlinks preserved)" +fi +(cd cli && npm install && npm run gen-client) \ + && echo "CLI deps installed and client generated" \ + || echo "WARNING: CLI setup failed" >&2 + # --- Allow direnv so the nix devshell activates in pane commands --- if command -v direnv &>/dev/null && [ -f .envrc ]; then direnv allow