We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ba1b36 commit 1a888c7Copy full SHA for 1a888c7
src/build/mdn-comments.ts
@@ -93,6 +93,10 @@ async function getIndexMdContents(
93
}
94
95
export async function generateDescription(): Promise<Record<string, string>> {
96
+ const stats = await fs.stat(basePath);
97
+ if (!stats.isDirectory()) {
98
+ throw new Error("MDN submodule does not exist; try running `git submodule update --init`");
99
+ }
100
try {
101
const folders = await getDirectories(basePath);
102
if (folders.length > 0) {
0 commit comments