chore: add typedoc.config.mjs

This commit is contained in:
c4605
2024-08-28 00:51:54 +01:00
parent 12eef24476
commit 2c9b3df960
3 changed files with 19 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
import pkgInfo from "../package.json" assert { type: "json" }
import path from "node:path"
const entryPoints = Object.keys(pkgInfo.exports).map(i => {
const exportEndpoint = i === "." ? "./XLinkSDK" : i
const exportEndpointFilePath = path.join("../src", exportEndpoint) + ".ts"
return exportEndpointFilePath
})
/** @type {Partial<import('typedoc').TypeDocOptions>} */
const config = {
entryPoints: entryPoints,
out: "../generated/docs",
}
export default config