nx 19.8.0-canary.20240914-dc821ab → 19.8.0-canary.20240917-5b34ea5

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": "19.8.0-canary.20240914-dc821ab",
3
+ "version": "19.8.0-canary.20240917-5b34ea5",
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.8.0-canary.20240914-dc821ab"
74
+ "@nrwl/tao": "19.8.0-canary.20240917-5b34ea5"
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.8.0-canary.20240914-dc821ab",
90
- "@nx/nx-darwin-arm64": "19.8.0-canary.20240914-dc821ab",
91
- "@nx/nx-linux-x64-gnu": "19.8.0-canary.20240914-dc821ab",
92
- "@nx/nx-linux-x64-musl": "19.8.0-canary.20240914-dc821ab",
93
- "@nx/nx-win32-x64-msvc": "19.8.0-canary.20240914-dc821ab",
94
- "@nx/nx-linux-arm64-gnu": "19.8.0-canary.20240914-dc821ab",
95
- "@nx/nx-linux-arm64-musl": "19.8.0-canary.20240914-dc821ab",
96
- "@nx/nx-linux-arm-gnueabihf": "19.8.0-canary.20240914-dc821ab",
97
- "@nx/nx-win32-arm64-msvc": "19.8.0-canary.20240914-dc821ab",
98
- "@nx/nx-freebsd-x64": "19.8.0-canary.20240914-dc821ab"
89
+ "@nx/nx-darwin-x64": "19.8.0-canary.20240917-5b34ea5",
90
+ "@nx/nx-darwin-arm64": "19.8.0-canary.20240917-5b34ea5",
91
+ "@nx/nx-linux-x64-gnu": "19.8.0-canary.20240917-5b34ea5",
92
+ "@nx/nx-linux-x64-musl": "19.8.0-canary.20240917-5b34ea5",
93
+ "@nx/nx-win32-x64-msvc": "19.8.0-canary.20240917-5b34ea5",
94
+ "@nx/nx-linux-arm64-gnu": "19.8.0-canary.20240917-5b34ea5",
95
+ "@nx/nx-linux-arm64-musl": "19.8.0-canary.20240917-5b34ea5",
96
+ "@nx/nx-linux-arm-gnueabihf": "19.8.0-canary.20240917-5b34ea5",
97
+ "@nx/nx-win32-arm64-msvc": "19.8.0-canary.20240917-5b34ea5",
98
+ "@nx/nx-freebsd-x64": "19.8.0-canary.20240917-5b34ea5"
99
99
  },
100
100
  "nx-migrations": {
101
101
  "migrations": "./migrations.json",
@@ -21,6 +21,7 @@ const fileutils_1 = require("../../../utils/fileutils");
21
21
  const find_matching_projects_1 = require("../../../utils/find-matching-projects");
22
22
  const output_1 = require("../../../utils/output");
23
23
  const workspace_root_1 = require("../../../utils/workspace-root");
24
+ const path_1 = require("../../../utils/path");
24
25
  const resolve_changelog_renderer_1 = require("../utils/resolve-changelog-renderer");
25
26
  const resolve_nx_json_error_message_1 = require("../utils/resolve-nx-json-error-message");
26
27
  const conventional_commits_1 = require("./conventional-commits");
@@ -657,7 +658,7 @@ async function getDefaultProjects(projectGraph, projectFileMap) {
657
658
  function isProjectPublic(project, projectGraph, projectFileMap) {
658
659
  const projectNode = projectGraph.nodes[project];
659
660
  const packageJsonPath = (0, node_path_1.join)(projectNode.data.root, 'package.json');
660
- if (!projectFileMap[project]?.find((f) => f.file === packageJsonPath)) {
661
+ if (!projectFileMap[project]?.find((f) => f.file === (0, path_1.normalizePath)(packageJsonPath))) {
661
662
  return false;
662
663
  }
663
664
  try {
@@ -11,7 +11,7 @@ const db_connection_1 = require("../utils/db-connection");
11
11
  let taskDetails;
12
12
  function getTaskDetails() {
13
13
  // TODO: Remove when wasm supports sqlite
14
- if (native_1.IS_WASM) {
14
+ if (process.env.NX_DISABLE_DB === 'true' || native_1.IS_WASM) {
15
15
  return null;
16
16
  }
17
17
  if (!taskDetails) {
@@ -42,7 +42,7 @@ async function hashTasksThatDoNotDependOnOutputsOfOtherTasks(hasher, projectGrap
42
42
  tasksToHash[i].hash = hashes[i].value;
43
43
  tasksToHash[i].hashDetails = hashes[i].details;
44
44
  }
45
- // TODO: Remove if when wasm supports sqlite
45
+ // TODO: Remove if when sqlite is always on
46
46
  if (taskDetails) {
47
47
  taskDetails.recordTaskDetails(tasksToHash.map((task) => ({
48
48
  hash: task.hash,
@@ -51,63 +51,51 @@ const {
51
51
  })
52
52
 
53
53
  function __napi_rs_initialize_modules(__napiInstance) {
54
- __napiInstance.exports['__napi_register__CachedResult_struct_0']?.()
55
- __napiInstance.exports['__napi_register__NxCache_struct_1']?.()
56
- __napiInstance.exports['__napi_register__NxCache_impl_9']?.()
57
- __napiInstance.exports['__napi_register__expand_outputs_10']?.()
58
- __napiInstance.exports['__napi_register__get_files_for_outputs_11']?.()
59
- __napiInstance.exports['__napi_register__remove_12']?.()
60
- __napiInstance.exports['__napi_register__copy_13']?.()
61
- __napiInstance.exports['__napi_register__validate_outputs_14']?.()
62
- __napiInstance.exports['__napi_register__get_transformable_outputs_15']?.()
63
- __napiInstance.exports['__napi_register__hash_array_16']?.()
64
- __napiInstance.exports['__napi_register__hash_file_17']?.()
65
- __napiInstance.exports['__napi_register__IS_WASM_18']?.()
66
- __napiInstance.exports['__napi_register__get_binary_target_19']?.()
67
- __napiInstance.exports['__napi_register__ImportResult_struct_20']?.()
68
- __napiInstance.exports['__napi_register__find_imports_21']?.()
69
- __napiInstance.exports['__napi_register__transfer_project_graph_22']?.()
70
- __napiInstance.exports['__napi_register__ExternalNode_struct_23']?.()
71
- __napiInstance.exports['__napi_register__Target_struct_24']?.()
72
- __napiInstance.exports['__napi_register__Project_struct_25']?.()
73
- __napiInstance.exports['__napi_register__ProjectGraph_struct_26']?.()
74
- __napiInstance.exports['__napi_register__HashedTask_struct_27']?.()
75
- __napiInstance.exports['__napi_register__TaskDetails_struct_28']?.()
76
- __napiInstance.exports['__napi_register__TaskDetails_impl_31']?.()
77
- __napiInstance.exports['__napi_register__HashPlanner_struct_32']?.()
78
- __napiInstance.exports['__napi_register__HashPlanner_impl_36']?.()
79
- __napiInstance.exports['__napi_register__HashDetails_struct_37']?.()
80
- __napiInstance.exports['__napi_register__HasherOptions_struct_38']?.()
81
- __napiInstance.exports['__napi_register__TaskHasher_struct_39']?.()
82
- __napiInstance.exports['__napi_register__TaskHasher_impl_42']?.()
83
- __napiInstance.exports['__napi_register__TaskRun_struct_43']?.()
84
- __napiInstance.exports['__napi_register__NxTaskHistory_struct_44']?.()
85
- __napiInstance.exports['__napi_register__NxTaskHistory_impl_48']?.()
86
- __napiInstance.exports['__napi_register__Task_struct_49']?.()
87
- __napiInstance.exports['__napi_register__TaskTarget_struct_50']?.()
88
- __napiInstance.exports['__napi_register__TaskGraph_struct_51']?.()
89
- __napiInstance.exports['__napi_register__FileData_struct_52']?.()
90
- __napiInstance.exports['__napi_register__InputsInput_struct_53']?.()
91
- __napiInstance.exports['__napi_register__FileSetInput_struct_54']?.()
92
- __napiInstance.exports['__napi_register__RuntimeInput_struct_55']?.()
93
- __napiInstance.exports['__napi_register__EnvironmentInput_struct_56']?.()
94
- __napiInstance.exports['__napi_register__ExternalDependenciesInput_struct_57']?.()
95
- __napiInstance.exports['__napi_register__DepsOutputsInput_struct_58']?.()
96
- __napiInstance.exports['__napi_register__NxJson_struct_59']?.()
97
- __napiInstance.exports['__napi_register__WorkspaceContext_struct_60']?.()
98
- __napiInstance.exports['__napi_register__WorkspaceContext_impl_69']?.()
99
- __napiInstance.exports['__napi_register__WorkspaceErrors_70']?.()
100
- __napiInstance.exports['__napi_register__NxWorkspaceFiles_struct_71']?.()
101
- __napiInstance.exports['__napi_register__NxWorkspaceFilesExternals_struct_72']?.()
102
- __napiInstance.exports['__napi_register__UpdatedWorkspaceFiles_struct_73']?.()
103
- __napiInstance.exports['__napi_register__FileMap_struct_74']?.()
104
- __napiInstance.exports['__napi_register____test_only_transfer_file_map_75']?.()
54
+ __napiInstance.exports['__napi_register__expand_outputs_0']?.()
55
+ __napiInstance.exports['__napi_register__get_files_for_outputs_1']?.()
56
+ __napiInstance.exports['__napi_register__remove_2']?.()
57
+ __napiInstance.exports['__napi_register__copy_3']?.()
58
+ __napiInstance.exports['__napi_register__validate_outputs_4']?.()
59
+ __napiInstance.exports['__napi_register__get_transformable_outputs_5']?.()
60
+ __napiInstance.exports['__napi_register__hash_array_6']?.()
61
+ __napiInstance.exports['__napi_register__hash_file_7']?.()
62
+ __napiInstance.exports['__napi_register__IS_WASM_8']?.()
63
+ __napiInstance.exports['__napi_register__get_binary_target_9']?.()
64
+ __napiInstance.exports['__napi_register__ImportResult_struct_10']?.()
65
+ __napiInstance.exports['__napi_register__find_imports_11']?.()
66
+ __napiInstance.exports['__napi_register__transfer_project_graph_12']?.()
67
+ __napiInstance.exports['__napi_register__ExternalNode_struct_13']?.()
68
+ __napiInstance.exports['__napi_register__Target_struct_14']?.()
69
+ __napiInstance.exports['__napi_register__Project_struct_15']?.()
70
+ __napiInstance.exports['__napi_register__ProjectGraph_struct_16']?.()
71
+ __napiInstance.exports['__napi_register__HashPlanner_struct_17']?.()
72
+ __napiInstance.exports['__napi_register__HashPlanner_impl_21']?.()
73
+ __napiInstance.exports['__napi_register__HashDetails_struct_22']?.()
74
+ __napiInstance.exports['__napi_register__HasherOptions_struct_23']?.()
75
+ __napiInstance.exports['__napi_register__TaskHasher_struct_24']?.()
76
+ __napiInstance.exports['__napi_register__TaskHasher_impl_27']?.()
77
+ __napiInstance.exports['__napi_register__Task_struct_28']?.()
78
+ __napiInstance.exports['__napi_register__TaskTarget_struct_29']?.()
79
+ __napiInstance.exports['__napi_register__TaskGraph_struct_30']?.()
80
+ __napiInstance.exports['__napi_register__FileData_struct_31']?.()
81
+ __napiInstance.exports['__napi_register__InputsInput_struct_32']?.()
82
+ __napiInstance.exports['__napi_register__FileSetInput_struct_33']?.()
83
+ __napiInstance.exports['__napi_register__RuntimeInput_struct_34']?.()
84
+ __napiInstance.exports['__napi_register__EnvironmentInput_struct_35']?.()
85
+ __napiInstance.exports['__napi_register__ExternalDependenciesInput_struct_36']?.()
86
+ __napiInstance.exports['__napi_register__DepsOutputsInput_struct_37']?.()
87
+ __napiInstance.exports['__napi_register__NxJson_struct_38']?.()
88
+ __napiInstance.exports['__napi_register__WorkspaceContext_struct_39']?.()
89
+ __napiInstance.exports['__napi_register__WorkspaceContext_impl_48']?.()
90
+ __napiInstance.exports['__napi_register__WorkspaceErrors_49']?.()
91
+ __napiInstance.exports['__napi_register__NxWorkspaceFiles_struct_50']?.()
92
+ __napiInstance.exports['__napi_register__NxWorkspaceFilesExternals_struct_51']?.()
93
+ __napiInstance.exports['__napi_register__UpdatedWorkspaceFiles_struct_52']?.()
94
+ __napiInstance.exports['__napi_register__FileMap_struct_53']?.()
95
+ __napiInstance.exports['__napi_register____test_only_transfer_file_map_54']?.()
105
96
  }
106
97
  export const HashPlanner = __napiModule.exports.HashPlanner
107
98
  export const ImportResult = __napiModule.exports.ImportResult
108
- export const NxCache = __napiModule.exports.NxCache
109
- export const NxTaskHistory = __napiModule.exports.NxTaskHistory
110
- export const TaskDetails = __napiModule.exports.TaskDetails
111
99
  export const TaskHasher = __napiModule.exports.TaskHasher
112
100
  export const WorkspaceContext = __napiModule.exports.WorkspaceContext
113
101
  export const copy = __napiModule.exports.copy
@@ -82,63 +82,51 @@ const { instance: __napiInstance, module: __wasiModule, napiModule: __napiModule
82
82
  })
83
83
 
84
84
  function __napi_rs_initialize_modules(__napiInstance) {
85
- __napiInstance.exports['__napi_register__CachedResult_struct_0']?.()
86
- __napiInstance.exports['__napi_register__NxCache_struct_1']?.()
87
- __napiInstance.exports['__napi_register__NxCache_impl_9']?.()
88
- __napiInstance.exports['__napi_register__expand_outputs_10']?.()
89
- __napiInstance.exports['__napi_register__get_files_for_outputs_11']?.()
90
- __napiInstance.exports['__napi_register__remove_12']?.()
91
- __napiInstance.exports['__napi_register__copy_13']?.()
92
- __napiInstance.exports['__napi_register__validate_outputs_14']?.()
93
- __napiInstance.exports['__napi_register__get_transformable_outputs_15']?.()
94
- __napiInstance.exports['__napi_register__hash_array_16']?.()
95
- __napiInstance.exports['__napi_register__hash_file_17']?.()
96
- __napiInstance.exports['__napi_register__IS_WASM_18']?.()
97
- __napiInstance.exports['__napi_register__get_binary_target_19']?.()
98
- __napiInstance.exports['__napi_register__ImportResult_struct_20']?.()
99
- __napiInstance.exports['__napi_register__find_imports_21']?.()
100
- __napiInstance.exports['__napi_register__transfer_project_graph_22']?.()
101
- __napiInstance.exports['__napi_register__ExternalNode_struct_23']?.()
102
- __napiInstance.exports['__napi_register__Target_struct_24']?.()
103
- __napiInstance.exports['__napi_register__Project_struct_25']?.()
104
- __napiInstance.exports['__napi_register__ProjectGraph_struct_26']?.()
105
- __napiInstance.exports['__napi_register__HashedTask_struct_27']?.()
106
- __napiInstance.exports['__napi_register__TaskDetails_struct_28']?.()
107
- __napiInstance.exports['__napi_register__TaskDetails_impl_31']?.()
108
- __napiInstance.exports['__napi_register__HashPlanner_struct_32']?.()
109
- __napiInstance.exports['__napi_register__HashPlanner_impl_36']?.()
110
- __napiInstance.exports['__napi_register__HashDetails_struct_37']?.()
111
- __napiInstance.exports['__napi_register__HasherOptions_struct_38']?.()
112
- __napiInstance.exports['__napi_register__TaskHasher_struct_39']?.()
113
- __napiInstance.exports['__napi_register__TaskHasher_impl_42']?.()
114
- __napiInstance.exports['__napi_register__TaskRun_struct_43']?.()
115
- __napiInstance.exports['__napi_register__NxTaskHistory_struct_44']?.()
116
- __napiInstance.exports['__napi_register__NxTaskHistory_impl_49']?.()
117
- __napiInstance.exports['__napi_register__Task_struct_50']?.()
118
- __napiInstance.exports['__napi_register__TaskTarget_struct_51']?.()
119
- __napiInstance.exports['__napi_register__TaskGraph_struct_52']?.()
120
- __napiInstance.exports['__napi_register__FileData_struct_53']?.()
121
- __napiInstance.exports['__napi_register__InputsInput_struct_54']?.()
122
- __napiInstance.exports['__napi_register__FileSetInput_struct_55']?.()
123
- __napiInstance.exports['__napi_register__RuntimeInput_struct_56']?.()
124
- __napiInstance.exports['__napi_register__EnvironmentInput_struct_57']?.()
125
- __napiInstance.exports['__napi_register__ExternalDependenciesInput_struct_58']?.()
126
- __napiInstance.exports['__napi_register__DepsOutputsInput_struct_59']?.()
127
- __napiInstance.exports['__napi_register__NxJson_struct_60']?.()
128
- __napiInstance.exports['__napi_register__WorkspaceContext_struct_61']?.()
129
- __napiInstance.exports['__napi_register__WorkspaceContext_impl_70']?.()
130
- __napiInstance.exports['__napi_register__WorkspaceErrors_71']?.()
131
- __napiInstance.exports['__napi_register__NxWorkspaceFiles_struct_72']?.()
132
- __napiInstance.exports['__napi_register__NxWorkspaceFilesExternals_struct_73']?.()
133
- __napiInstance.exports['__napi_register__UpdatedWorkspaceFiles_struct_74']?.()
134
- __napiInstance.exports['__napi_register__FileMap_struct_75']?.()
135
- __napiInstance.exports['__napi_register____test_only_transfer_file_map_76']?.()
85
+ __napiInstance.exports['__napi_register__expand_outputs_0']?.()
86
+ __napiInstance.exports['__napi_register__get_files_for_outputs_1']?.()
87
+ __napiInstance.exports['__napi_register__remove_2']?.()
88
+ __napiInstance.exports['__napi_register__copy_3']?.()
89
+ __napiInstance.exports['__napi_register__validate_outputs_4']?.()
90
+ __napiInstance.exports['__napi_register__get_transformable_outputs_5']?.()
91
+ __napiInstance.exports['__napi_register__hash_array_6']?.()
92
+ __napiInstance.exports['__napi_register__hash_file_7']?.()
93
+ __napiInstance.exports['__napi_register__IS_WASM_8']?.()
94
+ __napiInstance.exports['__napi_register__get_binary_target_9']?.()
95
+ __napiInstance.exports['__napi_register__ImportResult_struct_10']?.()
96
+ __napiInstance.exports['__napi_register__find_imports_11']?.()
97
+ __napiInstance.exports['__napi_register__transfer_project_graph_12']?.()
98
+ __napiInstance.exports['__napi_register__ExternalNode_struct_13']?.()
99
+ __napiInstance.exports['__napi_register__Target_struct_14']?.()
100
+ __napiInstance.exports['__napi_register__Project_struct_15']?.()
101
+ __napiInstance.exports['__napi_register__ProjectGraph_struct_16']?.()
102
+ __napiInstance.exports['__napi_register__HashPlanner_struct_17']?.()
103
+ __napiInstance.exports['__napi_register__HashPlanner_impl_21']?.()
104
+ __napiInstance.exports['__napi_register__HashDetails_struct_22']?.()
105
+ __napiInstance.exports['__napi_register__HasherOptions_struct_23']?.()
106
+ __napiInstance.exports['__napi_register__TaskHasher_struct_24']?.()
107
+ __napiInstance.exports['__napi_register__TaskHasher_impl_27']?.()
108
+ __napiInstance.exports['__napi_register__Task_struct_28']?.()
109
+ __napiInstance.exports['__napi_register__TaskTarget_struct_29']?.()
110
+ __napiInstance.exports['__napi_register__TaskGraph_struct_30']?.()
111
+ __napiInstance.exports['__napi_register__FileData_struct_31']?.()
112
+ __napiInstance.exports['__napi_register__InputsInput_struct_32']?.()
113
+ __napiInstance.exports['__napi_register__FileSetInput_struct_33']?.()
114
+ __napiInstance.exports['__napi_register__RuntimeInput_struct_34']?.()
115
+ __napiInstance.exports['__napi_register__EnvironmentInput_struct_35']?.()
116
+ __napiInstance.exports['__napi_register__ExternalDependenciesInput_struct_36']?.()
117
+ __napiInstance.exports['__napi_register__DepsOutputsInput_struct_37']?.()
118
+ __napiInstance.exports['__napi_register__NxJson_struct_38']?.()
119
+ __napiInstance.exports['__napi_register__WorkspaceContext_struct_39']?.()
120
+ __napiInstance.exports['__napi_register__WorkspaceContext_impl_48']?.()
121
+ __napiInstance.exports['__napi_register__WorkspaceErrors_49']?.()
122
+ __napiInstance.exports['__napi_register__NxWorkspaceFiles_struct_50']?.()
123
+ __napiInstance.exports['__napi_register__NxWorkspaceFilesExternals_struct_51']?.()
124
+ __napiInstance.exports['__napi_register__UpdatedWorkspaceFiles_struct_52']?.()
125
+ __napiInstance.exports['__napi_register__FileMap_struct_53']?.()
126
+ __napiInstance.exports['__napi_register____test_only_transfer_file_map_54']?.()
136
127
  }
137
128
  module.exports.HashPlanner = __napiModule.exports.HashPlanner
138
129
  module.exports.ImportResult = __napiModule.exports.ImportResult
139
- module.exports.NxCache = __napiModule.exports.NxCache
140
- module.exports.NxTaskHistory = __napiModule.exports.NxTaskHistory
141
- module.exports.TaskDetails = __napiModule.exports.TaskDetails
142
130
  module.exports.TaskHasher = __napiModule.exports.TaskHasher
143
131
  module.exports.WorkspaceContext = __napiModule.exports.WorkspaceContext
144
132
  module.exports.copy = __napiModule.exports.copy
Binary file
@@ -17,7 +17,8 @@ const nx_json_1 = require("../config/nx-json");
17
17
  const update_manager_1 = require("../nx-cloud/update-manager");
18
18
  const get_cloud_options_1 = require("../nx-cloud/utilities/get-cloud-options");
19
19
  function getCache(options) {
20
- return process.env.NX_DB_CACHE === 'true'
20
+ return process.env.NX_DISABLE_DB !== 'true' &&
21
+ process.env.NX_DB_CACHE === 'true'
21
22
  ? new DbCache({
22
23
  // Remove this in Nx 21
23
24
  nxCloudRemoteCache: (0, nx_cloud_utils_1.isNxCloudUsed)((0, nx_json_1.readNxJson)())
@@ -439,7 +439,9 @@ function constructLifeCycles(lifeCycle) {
439
439
  lifeCycles.push(new task_profiling_life_cycle_1.TaskProfilingLifeCycle(process.env.NX_PROFILE));
440
440
  }
441
441
  if (!(0, nx_cloud_utils_1.isNxCloudUsed)((0, nx_json_1.readNxJson)())) {
442
- lifeCycles.push(!native_1.IS_WASM ? new task_history_life_cycle_1.TaskHistoryLifeCycle() : new task_history_life_cycle_old_1.LegacyTaskHistoryLifeCycle());
442
+ lifeCycles.push(process.env.NX_DISABLE_DB !== 'true' && !native_1.IS_WASM
443
+ ? new task_history_life_cycle_1.TaskHistoryLifeCycle()
444
+ : new task_history_life_cycle_old_1.LegacyTaskHistoryLifeCycle());
443
445
  }
444
446
  return lifeCycles;
445
447
  }
@@ -13,15 +13,19 @@ class TasksSchedule {
13
13
  this.notScheduledTaskGraph = this.taskGraph;
14
14
  this.reverseTaskDeps = (0, utils_1.calculateReverseDeps)(this.taskGraph);
15
15
  this.reverseProjectGraph = (0, operators_1.reverse)(this.projectGraph);
16
- this.taskHistory = (0, task_history_1.getTaskHistory)();
16
+ this.taskHistory = process.env.NX_DISABLE_DB !== 'true' ? (0, task_history_1.getTaskHistory)() : null;
17
17
  this.scheduledBatches = [];
18
18
  this.scheduledTasks = [];
19
19
  this.runningTasks = new Set();
20
20
  this.completedTasks = new Set();
21
21
  this.scheduleRequestsExecutionChain = Promise.resolve();
22
+ this.estimatedTaskTimings = {};
22
23
  }
23
24
  async init() {
24
- this.estimatedTaskTimings = await this.taskHistory.getEstimatedTaskTimings(Object.values(this.taskGraph.tasks).map((t) => t.target));
25
+ if (this.taskHistory) {
26
+ this.estimatedTaskTimings =
27
+ await this.taskHistory.getEstimatedTaskTimings(Object.values(this.taskGraph.tasks).map((t) => t.target));
28
+ }
25
29
  }
26
30
  async scheduleNextTasks() {
27
31
  this.scheduleRequestsExecutionChain =