@faapi/faapi 0.0.0-canary.0e994fe → 0.0.0-canary.4ab8d97

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/index.js CHANGED
@@ -613,12 +613,12 @@ var init_normalizePatterns = __esm({
613
613
  // src/cli/parseArgs.ts
614
614
  function parseArgs(argv) {
615
615
  const cli = cac("faapi");
616
- cli.option("--port <port>", "Server port (env: PORT)").option("--app-dir <dir>", "App directory (root by default)", { default: "." }).option("--cors", "Enable CORS (default in dev mode)").option("--no-cors", "Disable CORS").option("--static <dir>", "Static files directory", { default: void 0 }).option("--no-static", "Disable static file serving").option("--types <path>", "Output path for generated types file").option("--config <path>", "Path to config file (faapi.config.ts)");
616
+ cli.option("--port <port>", "Server port (env: PORT)").option("--app-dir <dir>", "App directory (src by default)", { default: "src" }).option("--cors", "Enable CORS (default in dev mode)").option("--no-cors", "Disable CORS").option("--static <dir>", "Static files directory", { default: void 0 }).option("--no-static", "Disable static file serving").option("--types <path>", "Output path for generated types file").option("--config <path>", "Path to config file (faapi.config.ts)");
617
617
  const { args, options } = cli.parse(["", "", ...argv]);
618
618
  const rawPatterns = args.map(String).filter((a) => a !== "dev");
619
619
  const patterns = normalizePatterns(rawPatterns);
620
620
  const port = options.port ? Number(options.port) : Number(process.env.PORT) || 3e3;
621
- const appDir = String(options.appDir ?? ".");
621
+ const appDir = String(options.appDir ?? "src");
622
622
  const cors2 = options.cors !== false;
623
623
  const staticDir = options.static === false ? void 0 : options.static;
624
624
  const defaultPattern = appDir === "." ? "api/**/*.ts" : `${appDir}/api/**/*.ts`;