Skip to content

Commit 8a81961

Browse files
Merge pull request #227 from jesusoterogomez/linter/ensure_links_script_build/1
Linting: Ensure the validateLinks.js script is built
2 parents 1cbe905 + 86162ba commit 8a81961

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lint

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ set -eu
44

55
validate-links() {
66
echo "validate-links: RUN"
7+
# If the support/dist directory does not exist, build it
8+
if [ ! -d "support/dist" ]; then
9+
echo "Building project before running linting scripts"
10+
npm run build
11+
fi
12+
713
if npm exec -- node support/dist/validateLinks.js ; then
814
echo validate-links: PASS
915
else

0 commit comments

Comments
 (0)