From 1109383dbec89b73eb036aaf0af1052d7c1d7aa4 Mon Sep 17 00:00:00 2001 From: Danielle Maywood Date: Fri, 2 May 2025 11:37:52 +0000 Subject: [PATCH] fix: install devcontainer cli to `$CODER_SCRIPT_BIN_DIR` when using yarn --- devcontainers-cli/README.md | 2 +- devcontainers-cli/run.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/devcontainers-cli/README.md b/devcontainers-cli/README.md index 11961cd7..a416bcd6 100644 --- a/devcontainers-cli/README.md +++ b/devcontainers-cli/README.md @@ -16,7 +16,7 @@ The devcontainers-cli module provides an easy way to install [`@devcontainers/cl ```tf module "devcontainers-cli" { source = "registry.coder.com/modules/devcontainers-cli/coder" - version = "1.0.1" + version = "1.0.2" agent_id = coder_agent.example.id } ``` diff --git a/devcontainers-cli/run.sh b/devcontainers-cli/run.sh index 03aac17f..c2543821 100755 --- a/devcontainers-cli/run.sh +++ b/devcontainers-cli/run.sh @@ -38,7 +38,7 @@ install() { fi pnpm add -g @devcontainers/cli elif [ "$PACKAGE_MANAGER" = "yarn" ]; then - yarn global add @devcontainers/cli + yarn global add @devcontainers/cli --prefix "$CODER_SCRIPT_BIN_DIR" fi }