@travetto/compiler 5.0.9 → 5.0.10

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/watch.ts +6 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/compiler",
3
- "version": "5.0.9",
3
+ "version": "5.0.10",
4
4
  "description": "The compiler infrastructure for the Travetto framework",
5
5
  "keywords": [
6
6
  "compiler",
package/src/watch.ts CHANGED
@@ -245,7 +245,12 @@ export class CompilerWatcher {
245
245
  outEvents.push({ action, file: entry.sourceFile, entry });
246
246
  }
247
247
 
248
- await this.#rebuildManifestsIfNeeded(outEvents);
248
+ try {
249
+ await this.#rebuildManifestsIfNeeded(outEvents);
250
+ } catch (err) {
251
+ log.info('Restarting due to manifest rebuild failure', err);
252
+ this.#reset(events[0]);
253
+ }
249
254
  yield* outEvents;
250
255
  }
251
256