prev-cli 0.18.0 → 0.18.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.
Files changed (2) hide show
  1. package/dist/cli.js +1 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1222,7 +1222,7 @@ var { values, positionals } = parseArgs({
1222
1222
  allowPositionals: true
1223
1223
  });
1224
1224
  var command = positionals[0] || "dev";
1225
- var rootDir = path9.resolve(values.cwd || positionals[1] || ".");
1225
+ var rootDir = path9.resolve(values.cwd || (command === "config" ? "." : positionals[1]) || ".");
1226
1226
  function printHelp() {
1227
1227
  console.log(`
1228
1228
  prev - Zero-config documentation site generator
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prev-cli",
3
- "version": "0.18.0",
3
+ "version": "0.18.1",
4
4
  "description": "Transform MDX directories into beautiful documentation websites",
5
5
  "type": "module",
6
6
  "license": "MIT",