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/vite.mjs CHANGED
@@ -287,7 +287,8 @@ function collectMarkdownFiles(dir, base = dir) {
287
287
  for (const entry of entries) {
288
288
  const fullPath = join(dir, entry);
289
289
  const stat = statSync(fullPath);
290
- if (stat.isDirectory() && !entry.startsWith(".") && entry !== "node_modules") {
290
+ const SKIP_DIRS = /* @__PURE__ */ new Set(["node_modules", "public", "dist", ".next", ".nuxt", ".output", ".open-next", "coverage", "__tests__", "__mocks__"]);
291
+ if (stat.isDirectory() && !entry.startsWith(".") && !SKIP_DIRS.has(entry)) {
291
292
  files.push(...collectMarkdownFiles(fullPath, base));
292
293
  } else if (stat.isFile() && (extname(entry) === ".md" || extname(entry) === ".mdx")) {
293
294
  const content = readFileSync(fullPath, "utf-8");
@@ -630,7 +631,8 @@ function collectUrls(dir, config, base = dir) {
630
631
  for (const entry of entries) {
631
632
  const fullPath = join(dir, entry);
632
633
  const stat = statSync(fullPath);
633
- if (stat.isDirectory() && !entry.startsWith(".") && entry !== "node_modules") {
634
+ const SKIP_DIRS = /* @__PURE__ */ new Set(["node_modules", "public", "dist", ".next", ".nuxt", ".output", ".open-next", "coverage", "__tests__", "__mocks__"]);
635
+ if (stat.isDirectory() && !entry.startsWith(".") && !SKIP_DIRS.has(entry)) {
634
636
  urls.push(...collectUrls(fullPath, config, base));
635
637
  } else if (stat.isFile() && (extname(entry) === ".md" || extname(entry) === ".mdx" || extname(entry) === ".html")) {
636
638
  const relativePath = relative(base, fullPath);