prev-cli 0.19.0 → 0.19.2

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 -5
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1219,14 +1219,13 @@ var { values, positionals } = parseArgs({
1219
1219
  port: { type: "string", short: "p" },
1220
1220
  days: { type: "string", short: "d" },
1221
1221
  cwd: { type: "string", short: "c" },
1222
- include: { type: "string", short: "i", multiple: true },
1223
1222
  help: { type: "boolean", short: "h" },
1224
1223
  version: { type: "boolean", short: "v" }
1225
1224
  },
1226
1225
  allowPositionals: true
1227
1226
  });
1228
1227
  var command = positionals[0] || "dev";
1229
- var rootDir = path9.resolve(values.cwd || (command === "config" ? "." : positionals[1]) || ".");
1228
+ var rootDir = path9.resolve(values.cwd || (command === "config" || command === "create" ? "." : positionals[1]) || ".");
1230
1229
  function printHelp() {
1231
1230
  console.log(`
1232
1231
  prev - Zero-config documentation site generator
@@ -1249,7 +1248,6 @@ Config subcommands:
1249
1248
  Options:
1250
1249
  -c, --cwd <path> Set working directory
1251
1250
  -p, --port <port> Specify port (dev/preview)
1252
- -i, --include <dir> Include dot-prefixed directory (can use multiple times)
1253
1251
  -d, --days <days> Cache age threshold for clean (default: 30)
1254
1252
  -h, --help Show this help message
1255
1253
  -v, --version Show version number
@@ -1322,7 +1320,6 @@ Examples:
1322
1320
  prev build Build static site to ./dist
1323
1321
  prev create Create example preview in previews/example/
1324
1322
  prev create my-demo Create preview in previews/my-demo/
1325
- prev -i .c3 Include .c3 directory in docs
1326
1323
  prev clean -d 7 Remove caches older than 7 days
1327
1324
  `);
1328
1325
  }
@@ -1603,7 +1600,7 @@ async function main() {
1603
1600
  const config = loadConfig(rootDir);
1604
1601
  const port = values.port ? parseInt(values.port, 10) : config.port;
1605
1602
  const days = values.days ? parseInt(values.days, 10) : 30;
1606
- const include = [...config.include || [], ...values.include || []];
1603
+ const include = config.include || [];
1607
1604
  try {
1608
1605
  switch (command) {
1609
1606
  case "dev":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prev-cli",
3
- "version": "0.19.0",
3
+ "version": "0.19.2",
4
4
  "description": "Transform MDX directories into beautiful documentation websites",
5
5
  "type": "module",
6
6
  "license": "MIT",