Skip to content

Commit

Permalink
chore: disable turborepo telemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Sep 13, 2024
1 parent 4906c65 commit d1b0ead
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 d1b0ead

Please sign in to comment.