Skip to content

Commit

Permalink
fix: failed jsquarto build for javascript only projects
Browse files Browse the repository at this point in the history
see #197
  • Loading branch information
RealRichi3 committed Aug 11, 2024
1 parent f3b1e4f commit c1f8615
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build_book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
- name: Remove content of the _book
run: jsq doc:clean

- name: Transpile TypeScript project
- name: Build book
run: |
config_output=$(jsq config:get | tail -n 10)
echo "$config_output"
Expand All @@ -71,9 +71,11 @@ jobs:
SOURCE_DIRECTORY=$SOURCE_DIRECTORY
if [ -f "$SOURCE_DIRECTORY/tsconfig.json" ]; then
echo "tsconfig.json found in the current directory. Proceeding to transpile before generating doc."
tsc -b && jsq doc:generate
else
echo "No tsconfig.json found in the current directory. Skipping TypeScript transpilation."
jsq doc:generate
fi
- name: Prepare crowdin translations
Expand Down

0 comments on commit c1f8615

Please sign in to comment.