Skip to content

Commit

Permalink
fix(nxdev): preserve generated sitemap in cache (nrwl#11540)
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav authored Aug 11, 2022
1 parent 608f57d commit 57acec9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion nx-dev/nx-dev/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@
},
"sitemap": {
"executor": "nx:run-commands",
"outputs": [],
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/nx-dev/nx-dev/public",
"command": "yarn next-sitemap --config ./nx-dev/nx-dev/next-sitemap.js"
}
},
Expand Down
2 changes: 1 addition & 1 deletion scripts/documentation/internal-link-checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const sitemapLinks = readSiteMapIndex(
join(workspaceRoot, 'dist/nx-dev/nx-dev/public/'),
'sitemap.xml'
).flatMap((path) => readSiteMapLinks(path));
const errors = [];
const errors: Array<{ file: string; link: string }> = [];
for (let file in documentLinks) {
for (let link of documentLinks[file]) {
if (!sitemapLinks.includes(['https://nx.dev', link].join('')))
Expand Down

0 comments on commit 57acec9

Please sign in to comment.