@@ -133,7 +133,7 @@ export class TypeDocReader implements OptionsReader {
133
133
}
134
134
135
135
/**
136
- * Search for the typedoc.js or typedoc.json file from the given path
136
+ * Search for the configuration file given path
137
137
*
138
138
* @param path Path to the typedoc.(js|json) file. If path is a directory
139
139
* typedoc file will be attempted to be found at the root of this path
@@ -146,9 +146,17 @@ export class TypeDocReader implements OptionsReader {
146
146
return [
147
147
path ,
148
148
join ( path , "typedoc.json" ) ,
149
+ join ( path , "typedoc.jsonc" ) ,
150
+ join ( path , "typedoc.config.js" ) ,
151
+ join ( path , "typedoc.config.cjs" ) ,
149
152
join ( path , "typedoc.js" ) ,
150
- join ( path , ".config/ typedoc.js " ) ,
153
+ join ( path , "typedoc.cjs " ) ,
151
154
join ( path , ".config/typedoc.json" ) ,
155
+ join ( path , ".config/typedoc.jsonc" ) ,
156
+ join ( path , ".config/typedoc.config.js" ) ,
157
+ join ( path , ".config/typedoc.config.cjs" ) ,
158
+ join ( path , ".config/typedoc.js" ) ,
159
+ join ( path , ".config/typedoc.cjs" ) ,
152
160
] . find ( ( path ) => FS . existsSync ( path ) && FS . statSync ( path ) . isFile ( ) ) ;
153
161
}
154
162
}
0 commit comments