1- import path from 'node:path' ;
2- import fs from 'node:fs' ;
31import { OptionDefaults } from 'typedoc' ;
42
5- const IGNORE_LIST = [ '.DS_Store' , 'dev-cli' , 'expo-passkeys' , 'testing' , 'themes' , 'upgrade' ] ;
63const CUSTOM_BLOCK_TAGS = [
74 '@unionReturnHeadings' ,
85 '@displayFunctionSignature' ,
@@ -11,16 +8,6 @@ const CUSTOM_BLOCK_TAGS = [
118 '@hideReturns' ,
129] ;
1310
14- /**
15- * Return an array of relative paths to all folders in the "packages" folder to be used for the "entryPoints" option.
16- */
17- function getPackages ( ) {
18- const packagesDir = path . resolve ( 'packages' ) ;
19- const packages = fs . readdirSync ( packagesDir ) ;
20-
21- return packages . filter ( dir => ! IGNORE_LIST . includes ( dir ) ) . map ( dir => path . join ( 'packages' , dir ) ) ;
22- }
23-
2411/** @type {import("typedoc-plugin-markdown").PluginOptions } */
2512const typedocPluginMarkdownOptions = {
2613 hidePageHeader : true ,
@@ -116,7 +103,7 @@ const config = {
116103 disableSources : true ,
117104 ...typedocPluginReplaceTextOptions ,
118105 } ,
119- entryPoints : [ 'packages/backend' , 'packages/nextjs' , 'packages/react' , 'packages/shared' , 'packages/types' ] , // getPackages() ,
106+ entryPoints : [ 'packages/backend' , 'packages/nextjs' , 'packages/react' , 'packages/shared' ] ,
120107 ...typedocPluginMarkdownOptions ,
121108} ;
122109
0 commit comments