(program: Command)
| 21 | export type UpdateCommandOptions = z.infer<typeof UpdateCommandOptions>; |
| 22 | |
| 23 | export function configureUpdateCommand(program: Command) { |
| 24 | return program |
| 25 | .command("update") |
| 26 | .description("Updates all @trigger.dev/* packages to match the CLI version") |
| 27 | .argument("[path]", "The path to the directory that contains the package.json file", ".") |
| 28 | .option( |
| 29 | "-l, --log-level <level>", |
| 30 | "The CLI log level to use (debug, info, log, warn, error, none). This does not effect the log level of your trigger.dev tasks.", |
| 31 | "log" |
| 32 | ) |
| 33 | .option("--skip-telemetry", "Opt-out of sending telemetry") |
| 34 | .action(async (path, options) => { |
| 35 | wrapCommandAction("dev", UpdateCommandOptions, options, async (opts) => { |
| 36 | await printStandloneInitialBanner(true); |
| 37 | await updateCommand(path, opts); |
| 38 | }); |
| 39 | }); |
| 40 | } |
| 41 | |
| 42 | const triggerPackageFilter = /^@trigger\.dev/; |
| 43 |
no test coverage detected
searching dependent graphs…