nx 19.5.8 → 19.5.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,14 +10,14 @@ const update_manager_1 = require("../src/nx-cloud/update-manager");
10
10
  const get_cloud_options_1 = require("../src/nx-cloud/utilities/get-cloud-options");
11
11
  const nx_cloud_utils_1 = require("../src/utils/nx-cloud-utils");
12
12
  const nx_json_1 = require("../src/config/nx-json");
13
- const workspace_context_1 = require("../src/utils/workspace-context");
14
13
  const logger_1 = require("../src/utils/logger");
14
+ const workspace_context_1 = require("../src/utils/workspace-context");
15
15
  (async () => {
16
16
  const start = new Date();
17
17
  try {
18
- (0, workspace_context_1.setupWorkspaceContext)(workspace_root_1.workspaceRoot);
19
18
  if (isMainNxPackage() && (0, fileutils_1.fileExists)((0, path_1.join)(workspace_root_1.workspaceRoot, 'nx.json'))) {
20
19
  (0, assert_supported_platform_1.assertSupportedPlatform)();
20
+ (0, workspace_context_1.setupWorkspaceContext)(workspace_root_1.workspaceRoot);
21
21
  try {
22
22
  await client_1.daemonClient.stop();
23
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nx",
3
- "version": "19.5.8",
3
+ "version": "19.5.10",
4
4
  "private": false,
5
5
  "description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
6
6
  "repository": {
@@ -71,7 +71,7 @@
71
71
  "yargs-parser": "21.1.1",
72
72
  "node-machine-id": "1.1.12",
73
73
  "ora": "5.3.0",
74
- "@nrwl/tao": "19.5.8"
74
+ "@nrwl/tao": "19.5.10"
75
75
  },
76
76
  "peerDependencies": {
77
77
  "@swc-node/register": "^1.8.0",
@@ -86,16 +86,16 @@
86
86
  }
87
87
  },
88
88
  "optionalDependencies": {
89
- "@nx/nx-darwin-x64": "19.5.8",
90
- "@nx/nx-darwin-arm64": "19.5.8",
91
- "@nx/nx-linux-x64-gnu": "19.5.8",
92
- "@nx/nx-linux-x64-musl": "19.5.8",
93
- "@nx/nx-win32-x64-msvc": "19.5.8",
94
- "@nx/nx-linux-arm64-gnu": "19.5.8",
95
- "@nx/nx-linux-arm64-musl": "19.5.8",
96
- "@nx/nx-linux-arm-gnueabihf": "19.5.8",
97
- "@nx/nx-win32-arm64-msvc": "19.5.8",
98
- "@nx/nx-freebsd-x64": "19.5.8"
89
+ "@nx/nx-darwin-x64": "19.5.10",
90
+ "@nx/nx-darwin-arm64": "19.5.10",
91
+ "@nx/nx-linux-x64-gnu": "19.5.10",
92
+ "@nx/nx-linux-x64-musl": "19.5.10",
93
+ "@nx/nx-win32-x64-msvc": "19.5.10",
94
+ "@nx/nx-linux-arm64-gnu": "19.5.10",
95
+ "@nx/nx-linux-arm64-musl": "19.5.10",
96
+ "@nx/nx-linux-arm-gnueabihf": "19.5.10",
97
+ "@nx/nx-win32-arm64-msvc": "19.5.10",
98
+ "@nx/nx-freebsd-x64": "19.5.10"
99
99
  },
100
100
  "nx-migrations": {
101
101
  "migrations": "./migrations.json",
@@ -16,7 +16,7 @@ async function hashTasksThatDoNotDependOnOutputsOfOtherTasks(hasher, projectGrap
16
16
  const tasksToHash = tasksWithHashers
17
17
  .filter(({ task, customHasher }) => {
18
18
  // If a task has a custom hasher, it might depend on the outputs of other tasks
19
- if (customHasher) {
19
+ if (customHasher && customHasher.name !== 'eslint-hasher') {
20
20
  return false;
21
21
  }
22
22
  return !(taskGraph.dependencies[task.id].length > 0 &&
Binary file
@@ -54,10 +54,10 @@ class ProcessTasks {
54
54
  }
55
55
  }
56
56
  this.filterDummyTasks();
57
- for (const projectName of Object.keys(this.dependencies)) {
58
- if (this.dependencies[projectName].length > 1) {
59
- this.dependencies[projectName] = [
60
- ...new Set(this.dependencies[projectName]).values(),
57
+ for (const taskId of Object.keys(this.dependencies)) {
58
+ if (this.dependencies[taskId].length > 0) {
59
+ this.dependencies[taskId] = [
60
+ ...new Set(this.dependencies[taskId].filter((d) => d !== taskId)).values(),
61
61
  ];
62
62
  }
63
63
  }