@travetto/compiler 5.1.0 → 6.0.0-rc.1

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": "@travetto/compiler",
3
- "version": "5.1.0",
3
+ "version": "6.0.0-rc.1",
4
4
  "description": "The compiler infrastructure for the Travetto framework",
5
5
  "keywords": [
6
6
  "compiler",
@@ -29,12 +29,12 @@
29
29
  "directory": "module/compiler"
30
30
  },
31
31
  "dependencies": {
32
- "@parcel/watcher": "^2.5.0",
33
- "@travetto/manifest": "^5.1.0",
34
- "@travetto/transformer": "^5.1.0"
32
+ "@parcel/watcher": "^2.5.1",
33
+ "@travetto/manifest": "^6.0.0-rc.1",
34
+ "@travetto/transformer": "^6.0.0-rc.1"
35
35
  },
36
36
  "peerDependencies": {
37
- "@travetto/cli": "^5.1.0"
37
+ "@travetto/cli": "^6.0.0-rc.1"
38
38
  },
39
39
  "peerDependenciesMeta": {
40
40
  "@travetto/cli": {
package/src/watch.ts CHANGED
@@ -167,6 +167,9 @@ export class CompilerWatcher {
167
167
  this.#q.add(item);
168
168
  }
169
169
  } catch (out) {
170
+ if (out instanceof Error && out.message.includes('Events were dropped by the FSEvents client.')) {
171
+ out = new CompilerReset('FSEvents failure, requires restart');
172
+ }
170
173
  return this.#q.throw(out instanceof Error ? out : new Error(`${out}`));
171
174
  }
172
175
  }, { ignore });
@@ -63,7 +63,9 @@ export const main = (ctx: ManifestContext) => {
63
63
  if (await client.clean()) {
64
64
  return console.log(`Clean triggered ${ctx.workspace.path}:`, buildFolders);
65
65
  } else {
66
- await Promise.all(buildFolders.map(f => fs.rm(CommonUtil.resolveWorkspace(ctx, f), { force: true, recursive: true })));
66
+ try {
67
+ await Promise.all(buildFolders.map(f => fs.rm(CommonUtil.resolveWorkspace(ctx, f), { force: true, recursive: true })));
68
+ } catch { }
67
69
  return console.log(`Cleaned ${ctx.workspace.path}:`, buildFolders);
68
70
  }
69
71
  },
@@ -72,7 +72,7 @@ export class CompilerClient {
72
72
 
73
73
  /** Clean the server */
74
74
  clean(): Promise<boolean> {
75
- return this.#fetch('/clean').then(v => v.ok, () => false);
75
+ return this.#fetch('/clean', { timeout: 300 }).then(v => v.ok, () => false);
76
76
  }
77
77
 
78
78
  /** Stop server and wait for shutdown */