Skip to content

Commit 44f5750

Browse files
committed
Fix BaseAction.ts
1 parent 1b55b6e commit 44f5750

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

repo-scripts/api-documenter/src/cli/BaseAction.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ export abstract class BaseAction extends CommandLineAction {
105105

106106
const addFileNameSuffix: boolean = this._fileNameSuffixParameter.value;
107107

108-
for (const filename of FileSystem.readFolder(inputFolder)) {
108+
for (const file of FileSystem.readFolderItems(inputFolder)) {
109+
if (!file.isFile()) continue;
110+
const filename = file.name;
109111
if (filename.match(/\.api\.json$/i)) {
110112
console.log(`Reading ${filename}`);
111113
const filenamePath: string = path.join(inputFolder, filename);

0 commit comments

Comments
 (0)