11import { ResolvedConfig } from "@trigger.dev/core/v3/build" ;
2- import { Command } from "commander" ;
2+ import { Command , Option as CommandOption } from "commander" ;
33import { z } from "zod" ;
44import { CommonCommandOptions , commonOptions , wrapCommandAction } from "../cli/common.js" ;
55import { watchConfig } from "../config.js" ;
@@ -24,6 +24,8 @@ const DevCommandOptions = CommonCommandOptions.extend({
2424 maxConcurrentRuns : z . coerce . number ( ) . optional ( ) ,
2525 mcp : z . boolean ( ) . default ( false ) ,
2626 mcpPort : z . coerce . number ( ) . optional ( ) . default ( 3333 ) ,
27+ analyze : z . boolean ( ) . default ( false ) ,
28+ disableWarnings : z . boolean ( ) . default ( false ) ,
2729} ) ;
2830
2931export type DevCommandOptions = z . infer < typeof DevCommandOptions > ;
@@ -54,6 +56,10 @@ export function configureDevCommand(program: Command) {
5456 )
5557 . option ( "--mcp" , "Start the MCP server" )
5658 . option ( "--mcp-port" , "The port to run the MCP server on" , "3333" )
59+ . addOption (
60+ new CommandOption ( "--analyze" , "Analyze the build output and import timings" ) . hideHelp ( )
61+ )
62+ . addOption ( new CommandOption ( "--disable-warnings" , "Suppress warnings output" ) . hideHelp ( ) )
5763 ) . action ( async ( options ) => {
5864 wrapCommandAction ( "dev" , DevCommandOptions , options , async ( opts ) => {
5965 await devCommand ( opts ) ;
0 commit comments