prev-cli 0.19.1 → 0.20.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 +2 -2
  2. package/package.json +3 -3
package/dist/cli.js CHANGED
@@ -11,7 +11,7 @@ import { createServer as createServer2, build as build2, preview } from "vite";
11
11
 
12
12
  // src/vite/config.ts
13
13
  import { createLogger } from "vite";
14
- import react from "@vitejs/plugin-react-swc";
14
+ import react from "@vitejs/plugin-react";
15
15
  import mdx from "@mdx-js/rollup";
16
16
  import remarkGfm from "remark-gfm";
17
17
  import rehypeHighlight from "rehype-highlight";
@@ -1225,7 +1225,7 @@ var { values, positionals } = parseArgs({
1225
1225
  allowPositionals: true
1226
1226
  });
1227
1227
  var command = positionals[0] || "dev";
1228
- var rootDir = path9.resolve(values.cwd || (command === "config" ? "." : positionals[1]) || ".");
1228
+ var rootDir = path9.resolve(values.cwd || (command === "config" || command === "create" ? "." : positionals[1]) || ".");
1229
1229
  function printHelp() {
1230
1230
  console.log(`
1231
1231
  prev - Zero-config documentation site generator
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prev-cli",
3
- "version": "0.19.1",
3
+ "version": "0.20.0",
4
4
  "description": "Transform MDX directories into beautiful documentation websites",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -45,7 +45,7 @@
45
45
  "@tailwindcss/vite": "^4.0.0",
46
46
  "@tanstack/react-router": "^1.145.7",
47
47
  "@terrastruct/d2": "^0.1.33",
48
- "@vitejs/plugin-react-swc": "^4.2.2",
48
+ "@vitejs/plugin-react": "^4.4.1",
49
49
  "class-variance-authority": "^0.7.0",
50
50
  "clsx": "^2.1.0",
51
51
  "fast-glob": "^3.3.0",
@@ -59,7 +59,7 @@
59
59
  "react-router-dom": "^7.0.0",
60
60
  "rehype-highlight": "^7.0.0",
61
61
  "remark-gfm": "^4.0.0",
62
- "rolldown-vite": "^7.3.0",
62
+ "vite": "npm:rolldown-vite@^7.3.0",
63
63
  "tailwind-merge": "^2.5.0",
64
64
  "tailwindcss": "^4.0.0"
65
65
  },