prev-cli 0.9.0 → 0.9.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prev-cli",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "Transform MDX directories into beautiful documentation websites",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -54,8 +54,8 @@ function convertToPageTree(items: any[]): PageTree.Root {
54
54
  }
55
55
  }
56
56
 
57
- // Dynamic imports for MDX pages
58
- const pageModules = import.meta.glob('/**/*.{md,mdx}', { eager: true })
57
+ // Dynamic imports for MDX pages (include dot directories for --include flag)
58
+ const pageModules = import.meta.glob(['/**/*.{md,mdx}', '/.*/**/*.{md,mdx}'], { eager: true })
59
59
 
60
60
  function getPageComponent(file: string): React.ComponentType | null {
61
61
  const mod = pageModules[`/${file}`] as { default: React.ComponentType } | undefined