Skip to content

Commit

Permalink
Merge pull request #830 from CMSgov/filepath-fix
Browse files Browse the repository at this point in the history
QPPA-0000: Remove /dist from filepath
  • Loading branch information
john-manack authored Sep 3, 2024
2 parents 5ae97b8 + 00b2fba commit c1ed389
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const yearRegEx = /^[0-9]{4}/;
const benchmarkJsonFileRegEx = /^[0-9]{4}\.json$/;

__dirname = __dirname.replace('/dist', '');
__dirname = __dirname.replace('\\dist', '');

/**
* @return {Array<number>}
Expand Down
3 changes: 3 additions & 0 deletions util/mvp-data-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import * as _ from 'lodash';
import { Constants } from '../constants';
import { getMeasuresData } from '../index';

__dirname = __dirname.replace('/dist', '');
__dirname = __dirname.replace('\\dist', '');

export function createMVPDataFile(performanceYear: number): any {
const basePath = path.resolve(__dirname, '..');
const mvpFilePath = path.join(basePath, 'mvp', performanceYear.toString(), 'mvp-enriched.json');
Expand Down

0 comments on commit c1ed389

Please sign in to comment.