Skip to content

Commit ce6aa40

Browse files
committed
Fix typedoc to work with typescript 3.9.x
1 parent a90a7c4 commit ce6aa40

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

docs/Makefile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,21 @@ endif
1010

1111
html:
1212
cp ../package.json before-typedoc-package.json
13-
cp ../package-lock.json before-typedoc-package-lock.json
14-
cd .. && npm install "typedoc@<0.20.0"
13+
cd .. && npm install "typedoc@<0.21.0"
1514
rm -rf build
1615
mkdir -p build/html
1716
# For unknown reasons, TypeDoc doesn't seem to work reliably in this project when we put our
1817
# configuration in typedoc.js (as we do in all our other JS projects). Therefore we'll just
1918
# put all the options on the command line.
2019
# Also for unknown reasons, TypeDoc does not like us to specify a source path of ./src even
2120
# though that's what we do in our other projects, so we'll cd to the project root.
22-
cd .. && ./node_modules/.bin/typedoc \
23-
--mode file \
21+
cd .. && ./node_modules/.bin/typedoc src \
2422
--out ./docs/build/html \
2523
--name "${TITLE}" \
2624
--exclude '**/*.test.ts*' \
2725
--excludeExternals \
2826
--externalPattern "**/node_modules/**" \
2927
--readme none
3028
mv before-typedoc-package.json ../package.json
31-
mv before-typedoc-package-lock.json ../package-lock.json
3229

33-
.PHONY: html
30+
.PHONY: html

0 commit comments

Comments
 (0)