From d9096d0f9f7b40d3c75987e46758f2c8f3e491bc Mon Sep 17 00:00:00 2001 From: Gerrit Birkeland Date: Sun, 9 Jun 2024 12:25:23 -0600 Subject: [PATCH] Run validation in watch mode Fixes #2584 --- CHANGELOG.md | 1 + src/lib/cli.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index de3ac880b..930c1c859 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -72,6 +72,7 @@ - Fixed issue where search results could not be navigated while Windows Narrator was on, #2563. - `charset` is now correctly cased in `` tag generated by the default theme, #2568. - Fixed very slow conversion on Windows where Msys git was used by typedoc to discover repository links, #2586. +- Validation will now be run in watch mode, #2584. - The `--hideParameterTypesInTitle` option no longer applies when rendering function types. - Fixed `externalSymbolLinkMappings` option's support for [meanings](https://typedoc.org/guides/declaration-references/#meaning) in declaration references. - Buttons to copy code now have the `type=button` attribute set to avoid being treated as submit buttons. diff --git a/src/lib/cli.ts b/src/lib/cli.ts index b408c9b35..3878d0a00 100644 --- a/src/lib/cli.ts +++ b/src/lib/cli.ts @@ -73,6 +73,8 @@ async function run(app: td.Application) { if (app.options.getValue("watch")) { app.convertAndWatch(async (project) => { + app.validate(project); + const json = app.options.getValue("json"); if (!json || app.options.isSet("out")) {