You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Validate file registry paths during validate() for --emit none (#3078)
* Validate file registry paths during `validate()` for `--emit none`
When `--emit none` is used with `treatWarningsAsErrors`, warnings about
relative links pointing to directories were silently suppressed because
the only `isFile()` check lived in `AssetsPlugin.onRenderEnd()`, which
is skipped entirely when rendering is disabled.
This adds a `validateFilePaths()` validation pass that runs during
`Application.validate()`, gated on the existing `validation.invalidPath`
option. It iterates all registered file paths that lack a reflection
association (preserving packages-mode directory links which map to
reflections) and emits `validationWarning()` for non-file entries.
Because `validate()` runs before the `--emit none` gate in `cli.ts`,
directory-pointing relative links now produce warnings regardless of
emit mode.
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments