Skip to content

Commit

Permalink
chore: disable turborepo telemetry (aws#6474)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr authored and Ran Vaknin committed Sep 21, 2024
1 parent 18d0952 commit 3aedc77
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/turbo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3aedc77

Please sign in to comment.