Skip to content

Commit 1ff4d02

Browse files
Save check-links output to check-links.log via tee
Saving to disk before hitting the reporter appears to remove the flaky non-zero exit codes too Co-authored-by: Romaric Pascal <[email protected]>
1 parent a99c8d5 commit 1ff4d02

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
deploy/public
22
node_modules/
3-
npm-debug.log
3+
*.log
44
.DS_Store
55
.sass-cache
66
.cache

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"lint:js": "eslint --cache --cache-location .cache/eslint --cache-strategy content --color --ignore-path .gitignore \"**/*.{cjs,js,md,mjs}\"",
2727
"lint:prettier": "prettier --cache --cache-location .cache/prettier --cache-strategy content --check \"**/*.{cjs,js,json,md,mjs,scss,yaml,yml}\"",
2828
"lint:scss": "stylelint \"**/*.{md,scss}\"",
29-
"check-links": "hyperlink --canonicalroot https://design-system.service.gov.uk/ --internal --recursive deploy/public/sitemap.xml | tap-min"
29+
"check-links": "hyperlink --canonicalroot https://design-system.service.gov.uk/ --internal --recursive deploy/public/sitemap.xml | tee check-links.log | tap-min"
3030
},
3131
"dependencies": {
3232
"accessible-autocomplete": "^2.0.4",

0 commit comments

Comments
 (0)