From d1b0ead44aff0147594f61d4df057ef24daf7ffb Mon Sep 17 00:00:00 2001 From: "Kamat, Trivikram" <16024985+trivikr@users.noreply.github.com> Date: Fri, 13 Sep 2024 20:29:20 +0000 Subject: [PATCH] chore: disable turborepo telemetry --- 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 58ef5df98cf6d..7747fc2a04bec 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) {