Skip to content

Commit

Permalink
feat(run-compare.ts): add environment variables for TypeScript and OC…
Browse files Browse the repository at this point in the history
…aml output directories to make paths configurable
  • Loading branch information
MartinMinkov committed Jul 31, 2023
1 parent 34131fc commit c951879
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/consensus/run/run-compare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ import pwd from 'process';
import path from 'path';
import fs from 'fs/promises';

// TODO: Make these paths configurable
const TYPESCRIPT_DIR = path.join(pwd.cwd(), 'compare-ts');
const OCAML_DIR = path.join(pwd.cwd(), 'compare-ocaml');
const TYPESCRIPT_OUTPUT_DIR_NAME =
process.env.TYPESCRIPT_OUTPUT_DIR_NAME || 'compare-ts';
const OCAML_OUTPUT_DIR_NAME =
process.env.OCAML_OUTPUT_DIR_NAME || 'compare-ocaml';
const TYPESCRIPT_DIR = path.join(pwd.cwd(), TYPESCRIPT_OUTPUT_DIR_NAME);
const OCAML_DIR = path.join(pwd.cwd(), OCAML_OUTPUT_DIR_NAME);

async function compareFiles() {
// Get all file names in each directory
Expand Down

0 comments on commit c951879

Please sign in to comment.