From 26c01948ee92064799c7a369ed634989c8f1ac6a 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 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) {