mirror of
https://github.com/Brotocol-xyz/bro-sdk.git
synced 2026-04-30 20:31:57 +08:00
chore: add typedoc.config.mjs
This commit is contained in:
16
.config/typedoc.config.mjs
Normal file
16
.config/typedoc.config.mjs
Normal 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
|
||||
Reference in New Issue
Block a user