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