Skip to content

Commit 04b8e24

Browse files
committed
Scan external json files that end with .json
1 parent bf6fcb0 commit 04b8e24

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎api-extractor/src/Extractor.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,10 @@ export default class Extractor {
122122

123123
const files: string[] = fsx.readdirSync(externalJsonCollectionPath);
124124
files.forEach(file => {
125-
const externalJsonFilePath: string = path.join(externalJsonCollectionPath, file);
126-
this.docItemLoader.loadPackageIntoCache(externalJsonFilePath);
125+
if (path.extname(file) === '.json') {
126+
const externalJsonFilePath: string = path.join(externalJsonCollectionPath, file);
127+
this.docItemLoader.loadPackageIntoCache(externalJsonFilePath);
128+
}
127129
});
128130
}
129131
}

0 commit comments

Comments
 (0)