Skip to content

Commit

Permalink
Resolve path
Browse files Browse the repository at this point in the history
  • Loading branch information
cairoeth committed Oct 23, 2024
1 parent 4d3d97b commit 3322a26
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions certora/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,12 @@
import { spawn } from 'child_process';
import { PassThrough } from 'stream';
import { once } from 'events';
import { fileURLToPath } from 'url';
import path from 'path';
import yargs from 'yargs';
import { hideBin } from 'yargs/helpers';
import pLimit from 'p-limit';
import fs from 'fs/promises';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

const argv = yargs(hideBin(process.argv))
.env('')
.options({
Expand All @@ -30,7 +26,7 @@ const argv = yargs(hideBin(process.argv))
spec: {
alias: 's',
type: 'string',
default: path.join(__dirname, 'specs.json'),
default: path.resolve(import.meta.dirname, 'specs.json'),
},
parallel: {
alias: 'p',
Expand Down

0 comments on commit 3322a26

Please sign in to comment.