From 3aedc7736998f8c835d8a1c8979cea90bdf3831c Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Mon, 16 Sep 2024 07:30:19 -0700 Subject: [PATCH] chore: disable turborepo telemetry (#6474) --- scripts/turbo/index.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/turbo/index.js b/scripts/turbo/index.js index 58ef5df98cf6..7747fc2a04be 100644 --- a/scripts/turbo/index.js +++ b/scripts/turbo/index.js @@ -15,7 +15,14 @@ const runTurbo = async (task, args, apiSecret, apiEndpoint) => { command = command.concat(args); const turboRoot = path.join(__dirname, "..", ".."); try { - return await spawnProcess("npx", command, { stdio: "inherit", cwd: turboRoot }); + return await spawnProcess("npx", command, { + stdio: "inherit", + cwd: turboRoot, + env: { + ...process.env, + TURBO_TELEMETRY_DISABLED: "1", + }, + }); } catch (error) { console.error("Error running turbo:", error); if (args?.length > 0) {