nx 20.1.0 → 20.1.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": "nx",
3
- "version": "20.1.0",
3
+ "version": "20.1.1",
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": {
@@ -80,16 +80,16 @@
80
80
  }
81
81
  },
82
82
  "optionalDependencies": {
83
- "@nx/nx-darwin-x64": "20.1.0",
84
- "@nx/nx-darwin-arm64": "20.1.0",
85
- "@nx/nx-linux-x64-gnu": "20.1.0",
86
- "@nx/nx-linux-x64-musl": "20.1.0",
87
- "@nx/nx-win32-x64-msvc": "20.1.0",
88
- "@nx/nx-linux-arm64-gnu": "20.1.0",
89
- "@nx/nx-linux-arm64-musl": "20.1.0",
90
- "@nx/nx-linux-arm-gnueabihf": "20.1.0",
91
- "@nx/nx-win32-arm64-msvc": "20.1.0",
92
- "@nx/nx-freebsd-x64": "20.1.0"
83
+ "@nx/nx-darwin-x64": "20.1.1",
84
+ "@nx/nx-darwin-arm64": "20.1.1",
85
+ "@nx/nx-linux-x64-gnu": "20.1.1",
86
+ "@nx/nx-linux-x64-musl": "20.1.1",
87
+ "@nx/nx-win32-x64-msvc": "20.1.1",
88
+ "@nx/nx-linux-arm64-gnu": "20.1.1",
89
+ "@nx/nx-linux-arm64-musl": "20.1.1",
90
+ "@nx/nx-linux-arm-gnueabihf": "20.1.1",
91
+ "@nx/nx-win32-arm64-msvc": "20.1.1",
92
+ "@nx/nx-freebsd-x64": "20.1.1"
93
93
  },
94
94
  "nx-migrations": {
95
95
  "migrations": "./migrations.json",
@@ -21,6 +21,7 @@ const fs_1 = require("fs");
21
21
  const connect_to_nx_cloud_1 = require("../../../nx-cloud/generators/connect-to-nx-cloud/connect-to-nx-cloud");
22
22
  const url_shorten_1 = require("../../../nx-cloud/utilities/url-shorten");
23
23
  const connect_to_nx_cloud_2 = require("../../connect/connect-to-nx-cloud");
24
+ const default_base_1 = require("../../../utils/default-base");
24
25
  function createNxJsonFile(repoRoot, topologicalTargets, cacheableOperations, scriptOutputs) {
25
26
  const nxJsonPath = (0, path_2.joinPathFragments)(repoRoot, 'nx.json');
26
27
  let nxJson = {};
@@ -88,7 +89,16 @@ function deduceDefaultBase() {
88
89
  return 'next';
89
90
  }
90
91
  catch {
91
- return 'master';
92
+ try {
93
+ (0, child_process_1.execSync)(`git rev-parse --verify master`, {
94
+ stdio: ['ignore', 'ignore', 'ignore'],
95
+ windowsHide: false,
96
+ });
97
+ return 'master';
98
+ }
99
+ catch {
100
+ return (0, default_base_1.deduceDefaultBase)();
101
+ }
92
102
  }
93
103
  }
94
104
  }
@@ -43,7 +43,7 @@ function isDaemonDisabled() {
43
43
  function socketDirName() {
44
44
  const hasher = (0, crypto_1.createHash)('sha256');
45
45
  hasher.update(workspace_root_1.workspaceRoot.toLowerCase());
46
- const unique = hasher.digest('hex').substring(0, 20);
46
+ const unique = hasher.digest('hex').substring(0, 10);
47
47
  return (0, path_1.join)(tmp_1.tmpdir, unique);
48
48
  }
49
49
  /**
Binary file
@@ -140,7 +140,11 @@ class ProcessTasks {
140
140
  }
141
141
  }
142
142
  else {
143
- const dummyId = this.getId(depProject.name, task.target.target + DUMMY_TASK_TARGET, undefined);
143
+ // Create a dummy task for task.target.project... which simulates if depProject had dependencyConfig.target
144
+ const dummyId = this.getId(depProject.name, task.target.project +
145
+ '__' +
146
+ dependencyConfig.target +
147
+ DUMMY_TASK_TARGET, undefined);
144
148
  this.dependencies[task.id].push(dummyId);
145
149
  this.dependencies[dummyId] ??= [];
146
150
  const noopTask = this.createDummyTask(dummyId, task);