Skip to content

Commit

Permalink
Create base temp dir for benchmarks if not existing (#2558)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed May 17, 2020
1 parent cf89b85 commit e01cfa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/benchmark.js
Expand Up @@ -37,7 +37,7 @@ function prepareRevision(revision) {

const dir = path.join(os.tmpdir(), 'graphql-js-benchmark', hash);
rmdirRecursive(dir);
fs.mkdirSync(dir);
fs.mkdirSync(dir, { recursive: true });

exec(`git archive "${hash}" | tar -xC "${dir}"`);
exec('npm ci', { cwd: dir });
Expand Down

0 comments on commit e01cfa8

Please sign in to comment.