diff --git a/website/package.json b/website/package.json index d28bc8d2c61..aaf2ffdc412 100644 --- a/website/package.json +++ b/website/package.json @@ -37,7 +37,7 @@ "tailwindcss": "^1.4.0", "tailwindcss-dark-mode": "^1.1.0", "traverse": "^0.6.6", - "typedoc": "0.15.0", + "typedoc": "~0.19.2", "typescript": "^3.7.5", "use-dark-mode": "^2.3.1" }, diff --git a/website/scripts/generate-typedoc.js b/website/scripts/generate-typedoc.js index b69d19810ad..098c615ed54 100644 --- a/website/scripts/generate-typedoc.js +++ b/website/scripts/generate-typedoc.js @@ -17,10 +17,11 @@ const { readFileSync, unlinkSync } = require('fs'); const path = require('path'); -const { Application } = require('typedoc'); +const { Application, TSConfigReader } = require('typedoc'); const tempOutput = path.resolve(process.cwd(), 'typedoc.json'); const app = new Application(); +app.options.addReader(new TSConfigReader()); module.exports.generateTypedoc = function generateTypedoc() { console.log(path.resolve(__dirname, '../../tsconfig.json'));