@adonisjs/assembler 6.1.3-7 → 6.1.3-8

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.
@@ -102,8 +102,6 @@ export class DevServer {
102
102
  }
103
103
  })
104
104
  .catch((error) => {
105
- this.#logger.warning('unable to connect to underlying HTTP server process');
106
- this.#logger.fatal(error);
107
105
  this.#onError?.(error);
108
106
  this.#watcher?.close();
109
107
  this.#assetsServer?.stop();
@@ -126,11 +126,16 @@ export class TestRunner {
126
126
  }
127
127
  })
128
128
  .catch((error) => {
129
- this.#logger.warning(`unable to run test script "${this.#scriptFile}"`);
130
- this.#logger.fatal(error);
131
- this.#onError?.(error);
132
- this.#watcher?.close();
133
- this.#assetsServer?.stop();
129
+ /**
130
+ * Since the tests runner set the `process.exitCode = 1`, execa will
131
+ * throw an exception. However, we should ignore it and keep the
132
+ * watcher on.
133
+ */
134
+ if (mode === 'nonblocking') {
135
+ this.#onError?.(error);
136
+ this.#watcher?.close();
137
+ this.#assetsServer?.stop();
138
+ }
134
139
  })
135
140
  .finally(() => {
136
141
  this.#isBusy = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adonisjs/assembler",
3
- "version": "6.1.3-7",
3
+ "version": "6.1.3-8",
4
4
  "description": "Provides utilities to run AdonisJS development server and build project for production",
5
5
  "main": "build/index.js",
6
6
  "type": "module",