We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e3aec0 commit a9129cbCopy full SHA for a9129cb
src/index.js
@@ -53,10 +53,10 @@ export async function executeAction({
53
54
function writeTypedocJson(entry, name, tsConfigPath, treatWarningsAsErrors) {
55
let customTypedoc = '{}';
56
- try {
57
- customTypedoc = readFileSync(path.join(actionDir, 'typedoc.json'));
+ if (existsSync('typedoc.json')) {
+ customTypedoc = readFileSync('typedoc.json', 'utf-8');
58
core.info('Custom typedoc.json loaded');
59
- } catch {
+ } else {
60
core.info('No custom typedoc.json found');
61
}
62
/**
0 commit comments