()
| 28 | |
| 29 | /** Whether the current environment is in dry run mode. */ |
| 30 | export function isDryRun(): boolean { |
| 31 | return process.env['DRY_RUN'] !== undefined; |
| 32 | } |
| 33 | |
| 34 | /** Error to be thrown when a function or method is called in dryRun mode and shouldn't be. */ |
| 35 | export class DryRunError extends Error { |