arcway 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arcway",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "A convention-based framework for building modular monoliths with strict domain boundaries.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -102,11 +102,10 @@ class JobRunner {
102
102
 
103
103
  async init() {
104
104
  const jobsDir = this._config?.dir;
105
- if (!jobsDir) return;
106
105
 
107
106
  // Discover and register user jobs. `filePath` is captured so the
108
107
  // dispatcher can dynamic-import the handler inside a worker thread.
109
- const discovered = await discoverJobs(jobsDir);
108
+ const discovered = jobsDir ? await discoverJobs(jobsDir) : [];
110
109
  const pluginJobs = (await this._appContext.plugins?.discoverJobs?.()) ?? [];
111
110
  for (const { definition, fileName, filePath } of [...discovered, ...pluginJobs]) {
112
111
  this._dispatcher.register('app', definition, this._appContext, filePath);