Skip to content

Commit d2a7bfe

Browse files
committed
Work-around for #477
Compile the TS to JS to include those files in the compiled documentation. This is not ideal, since the types are omitted from such documentation
1 parent 55d727a commit d2a7bfe

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

docs/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ clean:
4343
# Generate output commands
4444
.PHONY: jsdoc
4545
jsdoc:
46-
cd .. && npm run js-doc
46+
# Compile the TypeScript sources to JS first. Several modules (e.g. the
47+
# UUID types) live only as .ts files whose compiled .js output is
48+
# git-ignored; without this step JSDoc never sees them and their docs are
49+
# missing from the build.
50+
cd .. && npm run build && npm run js-doc
4751
@echo
4852
@echo "JSDoc build finished. The API docs are in ../public/docs/."
4953

0 commit comments

Comments
 (0)