Browse Source

fix(cli): Fix schema command "dir" option

Fixes #3896
Michael Bromley 2 months ago
parent
commit
785ccf1fcd
1 changed files with 4 additions and 1 deletions
  1. 4 1
      packages/cli/src/commands/command-declarations.ts

+ 4 - 1
packages/cli/src/commands/command-declarations.ts

@@ -234,7 +234,10 @@ export const cliCommands: CliCommandDefinition[] = [
         ],
         action: async options => {
             const { schemaCommand } = await import('./schema/schema');
-            await schemaCommand(options as any);
+            await schemaCommand({
+                ...(options as any),
+                outputDir: options?.dir,
+            });
             process.exit(0);
         },
     },