Files
Aurélien GEORGET e31fe3104a enhancement(core): lazy-load node-schedule and umzug at boot (#26267)
Two cron / migration providers eagerly require modules they only need
at runtime:

- `services/cron.ts` imports `node-schedule` (~90 ms via `Job` class)
  even when `server.cron` is empty. Defer the require to first
  `add()` / `start()`.
- `database/src/migrations/{internal,users}.ts` instantiate `Umzug`
  immediately in their factory, pulling in the inquirer and
  `@rushstack/ts-command-line` chain. Move the construction inside a
  lazy `provider()` closure so the require only fires on `shouldRun`,
  `up`, or `down`.

~100 ms saved on every boot of a project without active cron tasks
or pending migrations (the common case).
2026-05-29 16:38:56 +02:00
..
2023-09-21 20:01:37 +02:00