Skip to content

Commit 7a8f350

Browse files
committed
fix(ci): failing pipeline
1 parent 0456c9f commit 7a8f350

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

detector/src/reporters/Input.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
import fs from 'node:fs/promises';
2+
import * as path from 'path';
23

34
export interface Input {
45
readTeamplate: () => Promise<string>;
56
}
67

78
export class ReadHtml implements Input {
89
async readTeamplate() : Promise<string> {
9-
const data = await fs.readFile(`${__dirname}/layout/example.html`, { encoding: 'utf8' });
10+
const filePath = path.resolve(__dirname, 'layout/example.html');
11+
const data = await fs.readFile(filePath, { encoding: 'utf8' });
1012
return data;
1113
}
1214
}

0 commit comments

Comments
 (0)