forked from semaphore-protocol/semaphore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypedoc.js
28 lines (26 loc) · 777 Bytes
/
typedoc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
const fs = require("fs")
const path = require("path")
const EXCLUDE_PKGS = [
"circuits",
"cli",
"cli-template",
"cli-template-contracts-hardhat",
"cli-template-monorepo-ethers",
"cli-template-monorepo-subgraph",
"cli-template-contracts-foundry",
"contracts",
"core",
"hardhat"
]
const packagesDir = path.join(__dirname, "packages")
const entryPoints = fs
.readdirSync(packagesDir, { withFileTypes: true })
.filter((dirent) => dirent.isDirectory() && !EXCLUDE_PKGS.includes(dirent.name))
.map((dirent) => path.join("packages", dirent.name))
/** @type {import('typedoc').typedocoptions} */
module.exports = {
cname: "js.semaphore.pse.dev",
entryPoints,
name: "Semaphore SDK",
entryPointStrategy: "packages"
}