Skip to content

Commit

Permalink
chore(tachometer): fix remote branches (#4510)
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanlawson authored Aug 30, 2024
1 parent a7c6e78 commit 16697a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/@lwc/perf-benchmarks/scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,14 @@ function createTachometerJson(htmlFilename, benchmarkName, directoryHash, cpuThr
ref: BENCHMARK_REF,
subdir: `packages/${pkg}`,
setupCommands: [
'yarn --immutable',
// Replace the `@lwc/perf-benchmarks-components` from the tip-of-tree
// with ours, just in case we've modified them locally.
// We want to recompile whatever benchmarks we've added with the
// compiler code from tip-of-tree, but we also want Tachometer to serve
// `@lwc/perf-benchmarks-components` itself.
'rm -fr ./packages/@lwc/perf-benchmarks-components',
`cp -R ${benchmarkComponentsDir} ./packages/@lwc/perf-benchmarks-components`,
'rm -fr ./packages/@lwc/perf-benchmarks-components/{src,scripts}',
`cp -R ${benchmarkComponentsDir}/{src,scripts} ./packages/@lwc/perf-benchmarks-components`,
'yarn --immutable',
// bust the Tachometer cache in case these files change locally
`echo '${directoryHash}'`,
'yarn build:performance:components',
Expand Down

0 comments on commit 16697a5

Please sign in to comment.