diff --git a/sphinx_js/js/cli.ts b/sphinx_js/js/cli.ts index fc32728f..aa8197f9 100644 --- a/sphinx_js/js/cli.ts +++ b/sphinx_js/js/cli.ts @@ -54,7 +54,9 @@ async function loadConfig( return configModule.config; } -export async function run(args: string[]): Promise<[Application, TopLevelIR[]]> { +export async function run( + args: string[], +): Promise<[Application, TopLevelIR[]]> { // Most of this stuff is copied from typedoc/src/lib/cli.ts let app = await bootstrapAppTypedoc0_25(args); if (app.options.getValue("version")) { diff --git a/sphinx_js/js/main.ts b/sphinx_js/js/main.ts index 0b3c7534..d33b6c0c 100644 --- a/sphinx_js/js/main.ts +++ b/sphinx_js/js/main.ts @@ -7,7 +7,7 @@ async function main() { let app, result; try { [app, result] = await run(args); - } catch(e) { + } catch (e) { if (e instanceof ExitError) { return e.code; }