File tree Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change 33const fs = require ( "node:fs" )
44const path = require ( "node:path" )
55
6- const frameworks = fs
6+ const isSkipAdapters = process . env . TYPEDOC_SKIP_ADAPTERS ? "skip" : "adapter-"
7+ const excludePackages = new RegExp (
8+ `(core|next-auth|frameworks-(?!template)|${ isSkipAdapters } )`
9+ )
10+
11+ const entryPoints = fs
712 . readdirSync ( path . resolve ( __dirname , "../packages" ) )
8- . filter ( ( dir ) => dir . startsWith ( "frameworks-" ) )
9- . filter ( ( dir ) => dir !== "frameworks-template" )
13+ . filter ( ( dir ) => excludePackages . test ( dir ) )
1014 . map ( ( dir ) => `../packages/${ dir } ` )
1115
12- frameworks . push ( "../packages/next-auth" , "../packages/core" )
13-
14- const adapters = process . env . TYPEDOC_SKIP_ADAPTERS
15- ? [ ]
16- : fs
17- . readdirSync ( path . resolve ( __dirname , "../packages" ) )
18- . filter ( ( dir ) => dir . startsWith ( "adapter-" ) )
19- . map ( ( dir ) => `../packages/${ dir } ` )
20-
2116/**
2217 * @type {import('typedoc').TypeDocOptions & import('typedoc-plugin-markdown').PluginOptions }
2318 */
2419module . exports = {
2520 // typedoc options
26- entryPoints : [ ... frameworks , ... adapters ] ,
21+ entryPoints,
2722 entryPointStrategy : "packages" ,
2823 out : "pages/reference" ,
2924 tsconfig : "./tsconfig.json" ,
You can’t perform that action at this time.
0 commit comments