mirror of
https://github.com/TanStack/query.git
synced 2026-11-16 22:50:20 +00:00
'relativeLinkExists' builds the target path with 'path.resolve', which
uses the platform separator, but then matches it against '/examples/'
and rewrites it with a regex written in forward slashes.
On Windows the resolved path uses backslashes, so neither pattern
matches. Every documentation link that points at an example is looked up
as a markdown file under 'docs/framework/<name>/examples/' instead of a
directory under 'examples/<name>/', and 'pnpm test:docs' reports 27
broken links that are fine on CI.
Normalize the separators before the two comparisons. Node accepts
forward slashes on Windows, so the resolved path stays usable.
Co-authored-by: Yogesh Kumar <webdev1@futeservices.com>
Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
|
History
|
|
|---|---|---|
| .. | ||
| create-github-release.mjs | ||
| generate-docs.ts | ||
| generate-labeler-config.ts | ||
| getTsupConfig.js | ||
| getViteAliases.js | ||
| tsconfig.json | ||
| verify-links.ts | ||