Skip to content

Commit a2fdd15

Browse files
committed
replace __dirname in favor of process.cwd
1 parent 0799dbc commit a2fdd15

File tree

1 file changed

+1
-1
lines changed
  • projects/optic/src/commands/diff

1 file changed

+1
-1
lines changed

projects/optic/src/commands/diff/diff.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ const getDiffAction =
455455
analyticsData.compressedDataLength = compressedData.length;
456456
logger.info('Opening up diff in web view');
457457
const baseHtml = path.resolve(
458-
__dirname,
458+
process.cwd(),
459459
'../../../web/build/index.html'
460460
);
461461
maybeChangelogUrl = `${baseHtml}#${compressedData}`;

0 commit comments

Comments
 (0)