From 85e05862fcd25835851febbfda3c681e1e99ee6c Mon Sep 17 00:00:00 2001 From: Vitor Monteiro Date: Fri, 17 Jul 2026 20:13:06 +0100 Subject: [PATCH] Add pnpm-workspace.yaml to approve dependency build scripts `pnpm run dev` runs `node src/main.ts dev`, and the @livekit/agents CLI performs a dependency-status check that shells out to `pnpm install`. Since pnpm 10.16, `pnpm install` exits non-zero (ERR_PNPM_IGNORED_BUILDS) when a dependency has an unapproved build script. This template has three (`@livekit/local-inference`, `protobufjs`, `sharp`), so on any recent pnpm a fresh clone fails at `pnpm run dev` before the agent starts. CI pins pnpm 10.15.0, which predates this behavior, so the failure is not caught there but affects every user on pnpm 10.16+ / 11. Approve the three build scripts in a tracked pnpm-workspace.yaml (the `pnpm` field in package.json is no longer read by pnpm 11), so the project installs and runs out of the box. --- pnpm-workspace.yaml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 pnpm-workspace.yaml diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml new file mode 100644 index 0000000..891631d --- /dev/null +++ b/pnpm-workspace.yaml @@ -0,0 +1,4 @@ +allowBuilds: + '@livekit/local-inference': true + protobufjs: true + sharp: true