nx 20.2.0-canary.20241112-c21b039 → 20.2.0-canary.20241113-cda7f26

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nx",
3
- "version": "20.2.0-canary.20241112-c21b039",
3
+ "version": "20.2.0-canary.20241113-cda7f26",
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.2.0-canary.20241112-c21b039",
84
- "@nx/nx-darwin-arm64": "20.2.0-canary.20241112-c21b039",
85
- "@nx/nx-linux-x64-gnu": "20.2.0-canary.20241112-c21b039",
86
- "@nx/nx-linux-x64-musl": "20.2.0-canary.20241112-c21b039",
87
- "@nx/nx-win32-x64-msvc": "20.2.0-canary.20241112-c21b039",
88
- "@nx/nx-linux-arm64-gnu": "20.2.0-canary.20241112-c21b039",
89
- "@nx/nx-linux-arm64-musl": "20.2.0-canary.20241112-c21b039",
90
- "@nx/nx-linux-arm-gnueabihf": "20.2.0-canary.20241112-c21b039",
91
- "@nx/nx-win32-arm64-msvc": "20.2.0-canary.20241112-c21b039",
92
- "@nx/nx-freebsd-x64": "20.2.0-canary.20241112-c21b039"
83
+ "@nx/nx-darwin-x64": "20.2.0-canary.20241113-cda7f26",
84
+ "@nx/nx-darwin-arm64": "20.2.0-canary.20241113-cda7f26",
85
+ "@nx/nx-linux-x64-gnu": "20.2.0-canary.20241113-cda7f26",
86
+ "@nx/nx-linux-x64-musl": "20.2.0-canary.20241113-cda7f26",
87
+ "@nx/nx-win32-x64-msvc": "20.2.0-canary.20241113-cda7f26",
88
+ "@nx/nx-linux-arm64-gnu": "20.2.0-canary.20241113-cda7f26",
89
+ "@nx/nx-linux-arm64-musl": "20.2.0-canary.20241113-cda7f26",
90
+ "@nx/nx-linux-arm-gnueabihf": "20.2.0-canary.20241113-cda7f26",
91
+ "@nx/nx-win32-arm64-msvc": "20.2.0-canary.20241113-cda7f26",
92
+ "@nx/nx-freebsd-x64": "20.2.0-canary.20241113-cda7f26"
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
  }
Binary file
@@ -29,6 +29,7 @@ export interface PackageJson {
29
29
  type?: 'module' | 'commonjs';
30
30
  main?: string;
31
31
  types?: string;
32
+ typings?: string;
32
33
  module?: string;
33
34
  exports?: string | Record<string, string | {
34
35
  types?: string;