(tasks, options)
| 73 | * @param {TaskOptions} options |
| 74 | */ |
| 75 | export async function runTasks(tasks, options) { |
| 76 | for (const task of tasks) { |
| 77 | try { |
| 78 | await task.run(options); |
| 79 | } catch (err) { |
| 80 | log.error(`${task.name} error\n${err.stack || err}`); |
| 81 | throw err; |
| 82 | } |
| 83 | } |
| 84 | } |