Files
bro-sdk/.config/typedoc.config.mjs
Ignacio Peña 6454c69cf1 docs: refactor README (#5)
* 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>
2024-09-05 01:12:29 +02:00

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