Skip to content

Commit a9129cb

Browse files
authored
fix: get typedoc.json from the right directory (#41)
1 parent 5e3aec0 commit a9129cb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ export async function executeAction({
5353

5454
function writeTypedocJson(entry, name, tsConfigPath, treatWarningsAsErrors) {
5555
let customTypedoc = '{}';
56-
try {
57-
customTypedoc = readFileSync(path.join(actionDir, 'typedoc.json'));
56+
if (existsSync('typedoc.json')) {
57+
customTypedoc = readFileSync('typedoc.json', 'utf-8');
5858
core.info('Custom typedoc.json loaded');
59-
} catch {
59+
} else {
6060
core.info('No custom typedoc.json found');
6161
}
6262
/**

0 commit comments

Comments
 (0)