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.
- package/dist/cli.js +1 -1
- 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
|