prev-cli 0.21.1 → 0.22.0

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.
Files changed (2) hide show
  1. package/dist/cli.js +12 -2
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -146,7 +146,16 @@ async function scanPages(rootDir, options = {}) {
146
146
  for (const dir of includeDirs) {
147
147
  patterns.push(`${dir}/**/*.{md,mdx}`);
148
148
  }
149
- const ignore = ["node_modules/**", "dist/**", ".cache/**"];
149
+ const ignore = [
150
+ "node_modules/**",
151
+ "dist/**",
152
+ ".cache/**",
153
+ "CLAUDE.md",
154
+ "CHANGELOG.md",
155
+ "CONTRIBUTING.md",
156
+ "LICENSE.md",
157
+ "SECURITY.md"
158
+ ];
150
159
  const files = await fg.glob(patterns, {
151
160
  cwd: rootDir,
152
161
  ignore,
@@ -829,7 +838,8 @@ async function createViteConfig(options) {
829
838
  plugins: [
830
839
  mdx({
831
840
  remarkPlugins: [remarkGfm],
832
- rehypePlugins: [rehypeHighlight]
841
+ rehypePlugins: [rehypeHighlight],
842
+ providerImportSource: "@mdx-js/react"
833
843
  }),
834
844
  react(),
835
845
  createConfigPlugin(config),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prev-cli",
3
- "version": "0.21.1",
3
+ "version": "0.22.0",
4
4
  "description": "Transform MDX directories into beautiful documentation websites",
5
5
  "type": "module",
6
6
  "license": "MIT",