mirror of
https://github.com/Brotocol-xyz/bro-sdk.git
synced 2026-01-12 06:44:18 +08:00
* add typedoc comments * fix merge error * update dev-dependencies to include typedoc * update package json * add errors to typedoc * add use cases and missing function to typedoc * README refactor and link to typedoc for documentation * refactor README * fix link to typedoc * typedoc config was modified * fixed imports * fix link and some formating --------- Co-authored-by: david weil <david.weil@endlesstruction.com.ar> Co-authored-by: david weil <tenuki@gmail.com>
17 lines
471 B
JavaScript
17 lines
471 B
JavaScript
import pkgInfo from "../package.json" assert { type: "json" }
|
|
import path from "node:path"
|
|
|
|
const entryPoints = Object.keys(pkgInfo.exports).map(i => {
|
|
const exportEndpoint = i === "." ? "./index" : 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
|