nx 22.0.0-rc.0 → 22.1.0-canary.20251022-681825e

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.
@@ -2,7 +2,7 @@ export declare const DAEMON_DIR_FOR_CURRENT_WORKSPACE: string;
2
2
  export declare const DAEMON_OUTPUT_LOG_FILE: string;
3
3
  export declare const getDaemonSocketDir: () => string;
4
4
  export declare function writeDaemonLogs(error?: string): string;
5
- export declare function markDaemonAsDisabled(): void;
5
+ export declare function markDaemonAsDisabled(reason: string): void;
6
6
  export declare function isDaemonDisabled(): boolean;
7
7
  /**
8
8
  * We try to create a socket file in a tmp dir, but if it doesn't work because
@@ -1 +1 @@
1
- {"version":3,"file":"tmp-dir.d.ts","sourceRoot":"","sources":["../../../../../packages/nx/src/daemon/tmp-dir.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,gCAAgC,QAG5C,CAAC;AAEF,eAAO,MAAM,sBAAsB,QAGlC,CAAC;AAEF,eAAO,MAAM,kBAAkB,cAK5B,CAAC;AAEJ,wBAAgB,eAAe,CAAC,KAAK,CAAC,EAAE,MAAM,UAI7C;AAED,wBAAgB,oBAAoB,SAEnC;AAED,wBAAgB,gBAAgB,YAO/B;AASD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,aAAa,UAAQ,UAYjD;AAED,wBAAgB,eAAe,SAI9B"}
1
+ {"version":3,"file":"tmp-dir.d.ts","sourceRoot":"","sources":["../../../../../packages/nx/src/daemon/tmp-dir.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,gCAAgC,QAG5C,CAAC;AAEF,eAAO,MAAM,sBAAsB,QAGlC,CAAC;AAEF,eAAO,MAAM,kBAAkB,cAK5B,CAAC;AAEJ,wBAAgB,eAAe,CAAC,KAAK,CAAC,EAAE,MAAM,UAI7C;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,QAElD;AAED,wBAAgB,gBAAgB,YAO/B;AASD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,aAAa,UAAQ,UAYjD;AAED,wBAAgB,eAAe,SAI9B"}
@@ -28,8 +28,8 @@ function writeDaemonLogs(error) {
28
28
  (0, node_fs_1.writeFileSync)(file, error);
29
29
  return file;
30
30
  }
31
- function markDaemonAsDisabled() {
32
- (0, node_fs_1.writeFileSync)((0, path_1.join)(exports.DAEMON_DIR_FOR_CURRENT_WORKSPACE, 'disabled'), 'true');
31
+ function markDaemonAsDisabled(reason) {
32
+ (0, node_fs_1.writeFileSync)((0, path_1.join)(exports.DAEMON_DIR_FOR_CURRENT_WORKSPACE, 'disabled'), reason);
33
33
  }
34
34
  function isDaemonDisabled() {
35
35
  try {
Binary file
@@ -300,7 +300,7 @@ async function createProjectGraphAndSourceMapsAsync(opts = {
300
300
  'Nx Daemon is going to be disabled until you run "nx reset".',
301
301
  ],
302
302
  });
303
- (0, tmp_dir_1.markDaemonAsDisabled)();
303
+ (0, tmp_dir_1.markDaemonAsDisabled)(e.message);
304
304
  return buildProjectGraphAndSourceMapsWithoutDaemon();
305
305
  }
306
306
  if (e.internalDaemonError) {
@@ -313,7 +313,7 @@ async function createProjectGraphAndSourceMapsAsync(opts = {
313
313
  'Nx Daemon is going to be disabled until you run "nx reset".',
314
314
  ],
315
315
  });
316
- (0, tmp_dir_1.markDaemonAsDisabled)();
316
+ (0, tmp_dir_1.markDaemonAsDisabled)(e.message);
317
317
  return buildProjectGraphAndSourceMapsWithoutDaemon();
318
318
  }
319
319
  handleProjectGraphError(opts, e);