Skip to content

Commit d82c01b

Browse files
authored
feat: better config file defaults (#2168)
* feat: better config file defaults
1 parent 2953f9c commit d82c01b

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/lib/utils/options/readers/typedoc.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export class TypeDocReader implements OptionsReader {
133133
}
134134

135135
/**
136-
* Search for the typedoc.js or typedoc.json file from the given path
136+
* Search for the configuration file given path
137137
*
138138
* @param path Path to the typedoc.(js|json) file. If path is a directory
139139
* typedoc file will be attempted to be found at the root of this path
@@ -146,9 +146,17 @@ export class TypeDocReader implements OptionsReader {
146146
return [
147147
path,
148148
join(path, "typedoc.json"),
149+
join(path, "typedoc.jsonc"),
150+
join(path, "typedoc.config.js"),
151+
join(path, "typedoc.config.cjs"),
149152
join(path, "typedoc.js"),
150-
join(path, ".config/typedoc.js"),
153+
join(path, "typedoc.cjs"),
151154
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"),
152160
].find((path) => FS.existsSync(path) && FS.statSync(path).isFile());
153161
}
154162
}

0 commit comments

Comments
 (0)