aeo.js 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/nuxt.mjs CHANGED
@@ -284,7 +284,8 @@ function collectMarkdownFiles(dir, base = dir) {
284
284
  for (const entry of entries) {
285
285
  const fullPath = join(dir, entry);
286
286
  const stat = statSync(fullPath);
287
- if (stat.isDirectory() && !entry.startsWith(".") && entry !== "node_modules") {
287
+ const SKIP_DIRS = /* @__PURE__ */ new Set(["node_modules", "public", "dist", ".next", ".nuxt", ".output", ".open-next", "coverage", "__tests__", "__mocks__"]);
288
+ if (stat.isDirectory() && !entry.startsWith(".") && !SKIP_DIRS.has(entry)) {
288
289
  files.push(...collectMarkdownFiles(fullPath, base));
289
290
  } else if (stat.isFile() && (extname(entry) === ".md" || extname(entry) === ".mdx")) {
290
291
  const content = readFileSync(fullPath, "utf-8");
@@ -627,7 +628,8 @@ function collectUrls(dir, config, base = dir) {
627
628
  for (const entry of entries) {
628
629
  const fullPath = join(dir, entry);
629
630
  const stat = statSync(fullPath);
630
- if (stat.isDirectory() && !entry.startsWith(".") && entry !== "node_modules") {
631
+ const SKIP_DIRS = /* @__PURE__ */ new Set(["node_modules", "public", "dist", ".next", ".nuxt", ".output", ".open-next", "coverage", "__tests__", "__mocks__"]);
632
+ if (stat.isDirectory() && !entry.startsWith(".") && !SKIP_DIRS.has(entry)) {
631
633
  urls.push(...collectUrls(fullPath, config, base));
632
634
  } else if (stat.isFile() && (extname(entry) === ".md" || extname(entry) === ".mdx" || extname(entry) === ".html")) {
633
635
  const relativePath = relative(base, fullPath);