Skip to content

Commit

Permalink
Disable telemetry for bench sandboxes for less flakiness
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperpeulen committed Oct 31, 2023
1 parent 93de5be commit d6d2600
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/tasks/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ export const build: Task = {
async ready({ builtSandboxDir }) {
return pathExists(builtSandboxDir);
},
async run({ sandboxDir, template }, { dryRun, debug }) {
async run({ sandboxDir, template, key }, { dryRun, debug }) {
const start = now();

await exec(
`${
template.name.includes('bench') ? 'STORYBOOK_DISABLE_TELEMETRY=1 ' : ''
key.startsWith('bench/') ? 'STORYBOOK_DISABLE_TELEMETRY=1 ' : ''
}yarn build-storybook --quiet ${template.modifications?.testBuild ? '--test' : ''}`,
{ cwd: sandboxDir },
{ dryRun, debug }
Expand Down

0 comments on commit d6d2600

Please sign in to comment.