Skip to content

Commit b85ef27

Browse files
[getsentry/action-github-commit] Auto commit
1 parent 9ce08af commit b85ef27

File tree

1 file changed

+21
-19
lines changed

1 file changed

+21
-19
lines changed

src/mdx.ts

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -212,25 +212,27 @@ async function getAllFilesFrontMatter(): Promise<FrontMatter[]> {
212212

213213
await Promise.all(
214214
files.map(
215-
limitFunction(async file => {
216-
const fileName = file.slice(docsPath.length + 1);
217-
if (path.extname(fileName) !== '.md' && path.extname(fileName) !== '.mdx') {
218-
return;
219-
}
220-
221-
if (fileName.indexOf('/common/') !== -1) {
222-
return;
223-
}
224-
225-
const source = await readFile(file, 'utf8');
226-
const {data: frontmatter} = matter(source);
227-
allFrontMatter.push({
228-
...(frontmatter as FrontMatter),
229-
slug: formatSlug(fileName),
230-
sourcePath: path.join('docs', fileName),
231-
});
232-
},
233-
{concurrency: FILE_CONCURRENCY_LIMIT})
215+
limitFunction(
216+
async file => {
217+
const fileName = file.slice(docsPath.length + 1);
218+
if (path.extname(fileName) !== '.md' && path.extname(fileName) !== '.mdx') {
219+
return;
220+
}
221+
222+
if (fileName.indexOf('/common/') !== -1) {
223+
return;
224+
}
225+
226+
const source = await readFile(file, 'utf8');
227+
const {data: frontmatter} = matter(source);
228+
allFrontMatter.push({
229+
...(frontmatter as FrontMatter),
230+
slug: formatSlug(fileName),
231+
sourcePath: path.join('docs', fileName),
232+
});
233+
},
234+
{concurrency: FILE_CONCURRENCY_LIMIT}
235+
)
234236
)
235237
);
236238

0 commit comments

Comments
 (0)