(program: Command)
| 70 | type DevCommandOptions = z.infer<typeof DevCommandOptions>; |
| 71 | |
| 72 | export function configureDevCommand(program: Command) { |
| 73 | return commonOptions( |
| 74 | program |
| 75 | .command("dev") |
| 76 | .description("Run your Trigger.dev tasks locally") |
| 77 | .argument("[path]", "The path to the project", ".") |
| 78 | .option("-c, --config <config file>", "The name of the config file, found at [path].") |
| 79 | .option( |
| 80 | "-p, --project-ref <project ref>", |
| 81 | "The project ref. Required if there is no config file." |
| 82 | ) |
| 83 | .option("--debugger", "Enable the debugger") |
| 84 | .option("--debug-otel", "Enable OpenTelemetry debugging") |
| 85 | .option("--skip-update-check", "Skip checking for @trigger.dev package updates") |
| 86 | ).action(async (path, options) => { |
| 87 | wrapCommandAction("dev", DevCommandOptions, options, async (opts) => { |
| 88 | await devCommand(path, opts); |
| 89 | }); |
| 90 | }); |
| 91 | } |
| 92 | |
| 93 | const MINIMUM_NODE_MAJOR = 18; |
| 94 | const MINIMUM_NODE_MINOR = 16; |
no test coverage detected
searching dependent graphs…