@nrwl/nx-cloud 14.0.5-beta.1 → 14.0.6

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.
@@ -1,130 +1 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.createStartRequest = exports.DistributedExecutionApi = void 0;
13
- const axios_1 = require("../../../utilities/axios");
14
- const environment_1 = require("../../../utilities/environment");
15
- const metric_logger_1 = require("../../../utilities/metric-logger");
16
- const { output, unparse } = require('../../../utilities/nx-imports');
17
- class DistributedExecutionApi {
18
- constructor(options) {
19
- this.apiAxiosInstance = (0, axios_1.createApiAxiosInstance)(options);
20
- }
21
- start(params) {
22
- var _a;
23
- return __awaiter(this, void 0, void 0, function* () {
24
- const recorder = (0, metric_logger_1.createMetricRecorder)('dteStart');
25
- let resp;
26
- try {
27
- resp = yield (0, axios_1.axiosMultipleTries)(() => this.apiAxiosInstance.post('/nx-cloud/executions/start', params));
28
- recorder.recordMetric((0, metric_logger_1.mapRespToPerfEntry)(resp));
29
- }
30
- catch (e) {
31
- recorder.recordMetric(((_a = e === null || e === void 0 ? void 0 : e.axiosException) === null || _a === void 0 ? void 0 : _a.response)
32
- ? (0, metric_logger_1.mapRespToPerfEntry)(e.axiosException.response)
33
- : metric_logger_1.RUNNER_FAILURE_PERF_ENTRY);
34
- throw e;
35
- }
36
- if (!resp.data.enabled) {
37
- throw new Error(`Workspace is disabled. Cannot perform distributed task executions.`);
38
- }
39
- if (resp.data.error) {
40
- throw new Error(resp.data.error);
41
- }
42
- return resp.data.id;
43
- });
44
- }
45
- status(id) {
46
- var _a;
47
- return __awaiter(this, void 0, void 0, function* () {
48
- const recorder = (0, metric_logger_1.createMetricRecorder)('dteStatus');
49
- try {
50
- const resp = yield (0, axios_1.axiosMultipleTries)(() => this.apiAxiosInstance.post('/nx-cloud/executions/status', {
51
- id,
52
- }));
53
- recorder.recordMetric((0, metric_logger_1.mapRespToPerfEntry)(resp));
54
- return resp.data;
55
- }
56
- catch (e) {
57
- recorder.recordMetric(((_a = e === null || e === void 0 ? void 0 : e.axiosException) === null || _a === void 0 ? void 0 : _a.response)
58
- ? (0, metric_logger_1.mapRespToPerfEntry)(e.axiosException.response)
59
- : metric_logger_1.RUNNER_FAILURE_PERF_ENTRY);
60
- output.error({
61
- title: e.message,
62
- });
63
- process.exit(1);
64
- }
65
- });
66
- }
67
- completeRunGroupWithError(runGroup, error) {
68
- var _a;
69
- return __awaiter(this, void 0, void 0, function* () {
70
- const recorder = (0, metric_logger_1.createMetricRecorder)('completeRunGroup');
71
- try {
72
- const resp = yield (0, axios_1.axiosMultipleTries)(() => this.apiAxiosInstance.post('/nx-cloud/executions/complete-run-group', {
73
- runGroup: runGroup,
74
- criticalErrorMessage: error,
75
- }), 3);
76
- recorder.recordMetric((0, metric_logger_1.mapRespToPerfEntry)(resp));
77
- }
78
- catch (e) {
79
- recorder.recordMetric(((_a = e === null || e === void 0 ? void 0 : e.axiosException) === null || _a === void 0 ? void 0 : _a.response)
80
- ? (0, metric_logger_1.mapRespToPerfEntry)(e.axiosException.response)
81
- : metric_logger_1.RUNNER_FAILURE_PERF_ENTRY);
82
- }
83
- });
84
- }
85
- }
86
- exports.DistributedExecutionApi = DistributedExecutionApi;
87
- function createStartRequest(runGroup, task, options) {
88
- const tasksToExecute = task.map((arr) => {
89
- return arr.map((t) => {
90
- return {
91
- taskId: t.id,
92
- hash: t.hash,
93
- projectName: t.target.project,
94
- target: t.target.target,
95
- configuration: t.target.configuration || null,
96
- params: unparse(t.overrides).join(' '),
97
- };
98
- });
99
- });
100
- const request = {
101
- command: (0, environment_1.parseCommand)(),
102
- branch: (0, environment_1.getBranch)(),
103
- runGroup,
104
- tasks: tasksToExecute,
105
- maxParallel: calculateMaxParallel(options),
106
- };
107
- if (environment_1.NX_CLOUD_DISTRIBUTED_EXECUTION_AGENT_COUNT) {
108
- request.agentCount = environment_1.NX_CLOUD_DISTRIBUTED_EXECUTION_AGENT_COUNT;
109
- }
110
- if (!environment_1.NX_CLOUD_DISTRIBUTED_EXECUTION_STOP_AGENTS_ON_FAILURE) {
111
- request.stopAgentsOnFailure = false;
112
- }
113
- return request;
114
- }
115
- exports.createStartRequest = createStartRequest;
116
- function calculateMaxParallel(options) {
117
- if (options.parallel === 'false' || options.parallel === false) {
118
- return 1;
119
- }
120
- else if (options.parallel === 'true' || options.parallel === true) {
121
- return Number(options.maxParallel || 3);
122
- }
123
- else if (options.parallel === undefined) {
124
- return options.maxParallel ? Number(options.maxParallel) : 3;
125
- }
126
- else {
127
- return Number(options.parallel) || 3;
128
- }
129
- }
130
- //# sourceMappingURL=distributed-execution.api.js.map
1
+ const a6_0x53f2=['post','target','parallel','completeRunGroup','../../../utilities/nx-imports','true','then','configuration','NX_CLOUD_DISTRIBUTED_EXECUTION_AGENT_COUNT','response','map','next','false','parseCommand','DistributedExecutionApi','/nx-cloud/executions/status','apiAxiosInstance','dteStart','value','NX_CLOUD_DISTRIBUTED_EXECUTION_STOP_AGENTS_ON_FAILURE','enabled','axiosException','/nx-cloud/executions/start','defineProperty','join','axiosMultipleTries','data','../../../utilities/axios','createStartRequest','createApiAxiosInstance','project','getBranch','status','RUNNER_FAILURE_PERF_ENTRY','agentCount','__awaiter','hash','mapRespToPerfEntry','recordMetric','/nx-cloud/executions/complete-run-group','error','maxParallel','exit'];(function(_0xc5b392,_0x53f244){const _0x4122b4=function(_0x1285d3){while(--_0x1285d3){_0xc5b392['push'](_0xc5b392['shift']());}};_0x4122b4(++_0x53f244);}(a6_0x53f2,0x97));const a6_0x4122=function(_0xc5b392,_0x53f244){_0xc5b392=_0xc5b392-0x0;let _0x4122b4=a6_0x53f2[_0xc5b392];return _0x4122b4;};'use strict';var __awaiter=this&&this[a6_0x4122('0xd')]||function(_0x57cd48,_0x1af7ee,_0x18e74b,_0x4e3c9c){function _0x32b6d9(_0x59e0a0){return _0x59e0a0 instanceof _0x18e74b?_0x59e0a0:new _0x18e74b(function(_0x4b5049){_0x4b5049(_0x59e0a0);});}return new(_0x18e74b||(_0x18e74b=Promise))(function(_0x35079f,_0x173f23){function _0x5d6ffa(_0x3b1138){try{_0x1c6ee8(_0x4e3c9c['next'](_0x3b1138));}catch(_0x200601){_0x173f23(_0x200601);}}function _0x54d33f(_0x4ef085){try{_0x1c6ee8(_0x4e3c9c['throw'](_0x4ef085));}catch(_0x713ca7){_0x173f23(_0x713ca7);}}function _0x1c6ee8(_0x5879a1){_0x5879a1['done']?_0x35079f(_0x5879a1[a6_0x4122('0x27')]):_0x32b6d9(_0x5879a1[a6_0x4122('0x27')])[a6_0x4122('0x1b')](_0x5d6ffa,_0x54d33f);}_0x1c6ee8((_0x4e3c9c=_0x4e3c9c['apply'](_0x57cd48,_0x1af7ee||[]))[a6_0x4122('0x20')]());});};Object[a6_0x4122('0x1')](exports,'__esModule',{'value':!![]});exports[a6_0x4122('0x6')]=exports[a6_0x4122('0x23')]=void 0x0;const axios_1=require(a6_0x4122('0x5'));const environment_1=require('../../../utilities/environment');const metric_logger_1=require('../../../utilities/metric-logger');const {output,unparse}=require(a6_0x4122('0x19'));class DistributedExecutionApi{constructor(_0x1dbb75){this['apiAxiosInstance']=(0x0,axios_1[a6_0x4122('0x7')])(_0x1dbb75);}['start'](_0x55b613){var _0x2e07d8;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x4f2c04=(0x0,metric_logger_1['createMetricRecorder'])(a6_0x4122('0x26'));let _0x254e25;try{_0x254e25=yield(0x0,axios_1['axiosMultipleTries'])(()=>this[a6_0x4122('0x25')][a6_0x4122('0x15')](a6_0x4122('0x0'),_0x55b613));_0x4f2c04[a6_0x4122('0x10')]((0x0,metric_logger_1[a6_0x4122('0xf')])(_0x254e25));}catch(_0x5cd8da){_0x4f2c04[a6_0x4122('0x10')](((_0x2e07d8=_0x5cd8da===null||_0x5cd8da===void 0x0?void 0x0:_0x5cd8da[a6_0x4122('0x2a')])===null||_0x2e07d8===void 0x0?void 0x0:_0x2e07d8[a6_0x4122('0x1e')])?(0x0,metric_logger_1['mapRespToPerfEntry'])(_0x5cd8da[a6_0x4122('0x2a')][a6_0x4122('0x1e')]):metric_logger_1[a6_0x4122('0xb')]);throw _0x5cd8da;}if(!_0x254e25[a6_0x4122('0x4')][a6_0x4122('0x29')]){throw new Error('Workspace\x20is\x20disabled.\x20Cannot\x20perform\x20distributed\x20task\x20executions.');}if(_0x254e25[a6_0x4122('0x4')]['error']){throw new Error(_0x254e25[a6_0x4122('0x4')]['error']);}return _0x254e25['data']['id'];});}[a6_0x4122('0xa')](_0x30cf26){var _0x4b155d;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x59aca0=(0x0,metric_logger_1['createMetricRecorder'])('dteStatus');try{const _0x282092=yield(0x0,axios_1['axiosMultipleTries'])(()=>this[a6_0x4122('0x25')][a6_0x4122('0x15')](a6_0x4122('0x24'),{'id':_0x30cf26}));_0x59aca0['recordMetric']((0x0,metric_logger_1[a6_0x4122('0xf')])(_0x282092));return _0x282092[a6_0x4122('0x4')];}catch(_0x1a86f3){_0x59aca0['recordMetric'](((_0x4b155d=_0x1a86f3===null||_0x1a86f3===void 0x0?void 0x0:_0x1a86f3[a6_0x4122('0x2a')])===null||_0x4b155d===void 0x0?void 0x0:_0x4b155d['response'])?(0x0,metric_logger_1[a6_0x4122('0xf')])(_0x1a86f3['axiosException'][a6_0x4122('0x1e')]):metric_logger_1[a6_0x4122('0xb')]);output[a6_0x4122('0x12')]({'title':_0x1a86f3['message']});process[a6_0x4122('0x14')](0x1);}});}['completeRunGroupWithError'](_0x4dc7b8,_0x296030){var _0x272d8a;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2b08da=(0x0,metric_logger_1['createMetricRecorder'])(a6_0x4122('0x18'));try{const _0x357ffc=yield(0x0,axios_1[a6_0x4122('0x3')])(()=>this['apiAxiosInstance'][a6_0x4122('0x15')](a6_0x4122('0x11'),{'runGroup':_0x4dc7b8,'criticalErrorMessage':_0x296030}),0x3);_0x2b08da['recordMetric']((0x0,metric_logger_1[a6_0x4122('0xf')])(_0x357ffc));}catch(_0x2b3ae0){_0x2b08da['recordMetric'](((_0x272d8a=_0x2b3ae0===null||_0x2b3ae0===void 0x0?void 0x0:_0x2b3ae0[a6_0x4122('0x2a')])===null||_0x272d8a===void 0x0?void 0x0:_0x272d8a[a6_0x4122('0x1e')])?(0x0,metric_logger_1[a6_0x4122('0xf')])(_0x2b3ae0[a6_0x4122('0x2a')]['response']):metric_logger_1[a6_0x4122('0xb')]);}});}}exports[a6_0x4122('0x23')]=DistributedExecutionApi;function createStartRequest(_0xe7eacd,_0x573831,_0xb27ecb){const _0x3c7c5f=_0x573831[a6_0x4122('0x1f')](_0x4727ed=>{return _0x4727ed[a6_0x4122('0x1f')](_0x5536a2=>{return{'taskId':_0x5536a2['id'],'hash':_0x5536a2[a6_0x4122('0xe')],'projectName':_0x5536a2['target'][a6_0x4122('0x8')],'target':_0x5536a2['target'][a6_0x4122('0x16')],'configuration':_0x5536a2[a6_0x4122('0x16')][a6_0x4122('0x1c')]||null,'params':unparse(_0x5536a2['overrides'])[a6_0x4122('0x2')]('\x20')};});});const _0x448a8e={'command':(0x0,environment_1[a6_0x4122('0x22')])(),'branch':(0x0,environment_1[a6_0x4122('0x9')])(),'runGroup':_0xe7eacd,'tasks':_0x3c7c5f,'maxParallel':calculateMaxParallel(_0xb27ecb)};if(environment_1[a6_0x4122('0x1d')]){_0x448a8e[a6_0x4122('0xc')]=environment_1[a6_0x4122('0x1d')];}if(!environment_1[a6_0x4122('0x28')]){_0x448a8e['stopAgentsOnFailure']=![];}return _0x448a8e;}exports['createStartRequest']=createStartRequest;function calculateMaxParallel(_0xf8c564){if(_0xf8c564[a6_0x4122('0x17')]===a6_0x4122('0x21')||_0xf8c564[a6_0x4122('0x17')]===![]){return 0x1;}else if(_0xf8c564['parallel']===a6_0x4122('0x1a')||_0xf8c564['parallel']===!![]){return Number(_0xf8c564[a6_0x4122('0x13')]||0x3);}else if(_0xf8c564[a6_0x4122('0x17')]===undefined){return _0xf8c564[a6_0x4122('0x13')]?Number(_0xf8c564[a6_0x4122('0x13')]):0x3;}else{return Number(_0xf8c564[a6_0x4122('0x17')])||0x3;}}
@@ -1,309 +1 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.TaskGraphCreator = exports.nxCloudDistributedTasksRunner = void 0;
13
- const stripJsonComments = require("strip-json-comments");
14
- const fs_1 = require("fs");
15
- const distributed_execution_api_1 = require("./distributed-execution.api");
16
- const file_storage_1 = require("../../file-storage/file-storage");
17
- const e2e_encryption_1 = require("../../file-storage/e2e-encryption");
18
- const waiter_1 = require("../../../utilities/waiter");
19
- const environment_1 = require("../../../utilities/environment");
20
- const print_run_group_error_1 = require("../../error/print-run-group-error");
21
- const create_no_new_messages_timeout_1 = require("../../../utilities/create-no-new-messages-timeout");
22
- const metric_logger_1 = require("../../../utilities/metric-logger");
23
- const error_reporter_api_1 = require("../../api/error-reporter.api");
24
- const { output, workspaceRoot, getDependencyConfigs, getOutputs, unparse, Cache, } = require('../../../utilities/nx-imports');
25
- class NoopLifeCycle {
26
- scheduleTask(task) { }
27
- startTask(task) { }
28
- endTask(task, code) { }
29
- }
30
- function runDistributedExecution(api, options, context, fileStorage, cache, runGroup, tasks) {
31
- return __awaiter(this, void 0, void 0, function* () {
32
- const nxjson = JSON.parse(stripJsonComments((0, fs_1.readFileSync)(`${workspaceRoot}/nx.json`).toString()));
33
- const stages = new TaskOrderer(context.projectGraph, getDefaultDependencyConfigs(nxjson, options)).splitTasksIntoStages(tasks);
34
- const id = yield api.start((0, distributed_execution_api_1.createStartRequest)(runGroup, stages, options));
35
- return yield processTasks(api, fileStorage, cache, options, id, tasks, context);
36
- });
37
- }
38
- function processTasks(api, fileStorage, cache, options, executionId, tasks, context) {
39
- return __awaiter(this, void 0, void 0, function* () {
40
- const processedTasks = {};
41
- const failIfNumberOfCompletedTasksDoesNotChangeIn30Mins = (0, create_no_new_messages_timeout_1.createNoNewMessagesTimeout)();
42
- const waiter = new waiter_1.Waiter();
43
- while (true) {
44
- if (environment_1.VERBOSE_LOGGING) {
45
- output.note({
46
- title: 'Waiting...',
47
- });
48
- }
49
- yield waiter.wait();
50
- const r = yield api.status(executionId);
51
- if (environment_1.VERBOSE_LOGGING) {
52
- output.note({
53
- title: `Status update`,
54
- bodyLines: [
55
- `executionId: ${executionId}`,
56
- `executionStatus: ${r.executionStatus}`,
57
- `number of completed tasks: ${r.completedTasks.length}`,
58
- `error: ${r.criticalErrorMessage}`,
59
- ],
60
- });
61
- }
62
- if (r.criticalErrorMessage) {
63
- output.error({
64
- title: 'Distributed Execution Terminated',
65
- bodyLines: ['Error:', r.criticalErrorMessage],
66
- });
67
- process.exit(1);
68
- }
69
- failIfNumberOfCompletedTasksDoesNotChangeIn30Mins(r.completedTasks.length);
70
- for (const t of r.completedTasks) {
71
- if (processedTasks[t.taskId])
72
- continue;
73
- yield processTask(fileStorage, cache, context, options, tasks, t);
74
- waiter.reset();
75
- processedTasks[t.taskId] = true;
76
- }
77
- if (r.executionStatus === 'COMPLETED') {
78
- return { commandStatus: r.commandStatus, runUrl: r.runUrl };
79
- }
80
- }
81
- });
82
- }
83
- function processTask(fileStorage, cache, context, options, tasks, completedTask) {
84
- return __awaiter(this, void 0, void 0, function* () {
85
- if (environment_1.VERBOSE_LOGGING) {
86
- output.note({
87
- title: `Processing task ${completedTask.taskId}`,
88
- });
89
- }
90
- const matchingTask = tasks.find((tt) => completedTask.taskId === tt.id);
91
- if (!matchingTask) {
92
- throw new Error(`Found unknown task: ${completedTask.taskId}`);
93
- }
94
- if (environment_1.VERBOSE_LOGGING) {
95
- output.note({
96
- title: `Retrieving artifacts from ${completedTask.url}`,
97
- });
98
- }
99
- yield fileStorage.retrieve(completedTask.hash, completedTask.url, options.cacheDirectory || './node_modules/.cache/nx');
100
- const cachedResult = yield cache.get(Object.assign(Object.assign({}, matchingTask), { hash: completedTask.hash }));
101
- const outputs = getOutputs(context.projectGraph.nodes, matchingTask);
102
- if (environment_1.VERBOSE_LOGGING) {
103
- output.note({
104
- title: `Extracting artifacts`,
105
- bodyLines: outputs,
106
- });
107
- }
108
- yield cache.copyFilesFromCache(completedTask.hash, cachedResult, outputs);
109
- output.logCommand(getCommand(matchingTask));
110
- process.stdout.write(cachedResult.terminalOutput);
111
- output.addVerticalSeparator();
112
- });
113
- }
114
- function getCommand(task) {
115
- const args = unparse(task.overrides || {});
116
- const config = task.target.configuration
117
- ? `:${task.target.configuration}`
118
- : '';
119
- return [
120
- 'nx',
121
- 'run',
122
- `${task.target.project}:${task.target.target}${config}`,
123
- ...args,
124
- ].join(' ');
125
- }
126
- const nxCloudDistributedTasksRunner = (tasks, options, context) => __awaiter(void 0, void 0, void 0, function* () {
127
- if (environment_1.VERBOSE_LOGGING) {
128
- output.note({
129
- title: 'Starting distributed command execution',
130
- });
131
- }
132
- options.lifeCycle = new NoopLifeCycle();
133
- const runGroup = (0, environment_1.getRunGroup)();
134
- if (!runGroup) {
135
- (0, print_run_group_error_1.printRunGroupError)();
136
- return process.exit(1);
137
- }
138
- const encryption = new e2e_encryption_1.E2EEncryption(environment_1.ENCRYPTION_KEY || options.encryptionKey);
139
- const errorReporter = new error_reporter_api_1.ErrorReporterApi(options);
140
- const fileStorage = new file_storage_1.FileStorage(encryption, errorReporter, true);
141
- const cache = new Cache(options);
142
- const api = new distributed_execution_api_1.DistributedExecutionApi(options);
143
- try {
144
- const r = yield runDistributedExecution(api, options, context, fileStorage, cache, runGroup, tasks);
145
- if (r.commandStatus === 0) {
146
- output.success({
147
- title: 'Successfully completed running the command.',
148
- bodyLines: [`See run details at ${r.runUrl}`],
149
- });
150
- }
151
- else {
152
- output.error({
153
- title: 'Command execution failed.',
154
- bodyLines: [`See run details at ${r.runUrl}`],
155
- });
156
- }
157
- yield (0, metric_logger_1.submitRunMetrics)(options);
158
- process.exit(r.commandStatus);
159
- }
160
- catch (e) {
161
- output.error({
162
- title: 'Unable to complete a run.',
163
- bodyLines: [e.message],
164
- });
165
- if (e.axiosException) {
166
- console.log(e.axiosException);
167
- }
168
- else {
169
- console.log(e);
170
- }
171
- try {
172
- yield api.completeRunGroupWithError(runGroup, `Main job terminated with an error: "${e.message}"`);
173
- }
174
- finally {
175
- process.exit(1);
176
- }
177
- }
178
- });
179
- exports.nxCloudDistributedTasksRunner = nxCloudDistributedTasksRunner;
180
- class TaskOrderer {
181
- constructor(projectGraph, defaultTargetDependencies) {
182
- this.projectGraph = projectGraph;
183
- this.defaultTargetDependencies = defaultTargetDependencies;
184
- }
185
- splitTasksIntoStages(tasks) {
186
- if (tasks.length === 0)
187
- return [];
188
- const stages = [];
189
- const taskGraph = this.createTaskGraph(tasks);
190
- const notStagedTaskIds = new Set(tasks.map((t) => t.id));
191
- let stageIndex = 0;
192
- // Loop through tasks and try to stage them. As tasks are staged, they are removed from the loop
193
- while (notStagedTaskIds.size > 0) {
194
- const currentStage = (stages[stageIndex] = []);
195
- for (const taskId of notStagedTaskIds) {
196
- let ready = true;
197
- for (const dependency of taskGraph.dependencies[taskId]) {
198
- if (notStagedTaskIds.has(dependency)) {
199
- // dependency has not been staged yet, this task is not ready to be staged.
200
- ready = false;
201
- break;
202
- }
203
- }
204
- // Some dependency still has not been staged, skip it for now, it will be processed again
205
- if (!ready) {
206
- continue;
207
- }
208
- // All the dependencies have been staged, let's stage it.
209
- const task = taskGraph.tasks[taskId];
210
- currentStage.push(task);
211
- }
212
- // Remove the entire new stage of tasks from the list
213
- for (const task of currentStage) {
214
- notStagedTaskIds.delete(task.id);
215
- }
216
- stageIndex++;
217
- }
218
- return stages;
219
- }
220
- createTaskGraph(tasks) {
221
- const t = new TaskGraphCreator(this.projectGraph, this.defaultTargetDependencies);
222
- return t.createTaskGraph(tasks);
223
- }
224
- }
225
- class TaskGraphCreator {
226
- constructor(projectGraph, defaultTargetDependencies) {
227
- this.projectGraph = projectGraph;
228
- this.defaultTargetDependencies = defaultTargetDependencies;
229
- }
230
- createTaskGraph(tasks) {
231
- const graph = {
232
- roots: [],
233
- tasks: {},
234
- dependencies: {},
235
- };
236
- for (const task of tasks) {
237
- this.addTaskToGraph(task, graph);
238
- const dependencyConfigs = getDependencyConfigs(task.target, this.defaultTargetDependencies, this.projectGraph);
239
- if (!dependencyConfigs) {
240
- continue;
241
- }
242
- this.addTaskDependencies(task, dependencyConfigs, tasks, graph);
243
- }
244
- graph.roots = Object.keys(graph.dependencies).filter((k) => graph.dependencies[k].length === 0);
245
- return graph;
246
- }
247
- addTaskDependencies(task, dependencyConfigs, tasks, graph) {
248
- for (const dependencyConfig of dependencyConfigs) {
249
- if (dependencyConfig.projects === 'self') {
250
- for (const t of tasks) {
251
- if (t.target.project === task.target.project &&
252
- t.target.target === dependencyConfig.target) {
253
- graph.dependencies[task.id].push(t.id);
254
- }
255
- }
256
- }
257
- else if (dependencyConfig.projects === 'dependencies') {
258
- const seen = new Set();
259
- this.addDependencies(task.target.project, dependencyConfig.target, tasks, graph, task.id, seen);
260
- }
261
- }
262
- }
263
- addDependencies(project, target, tasks, graph, taskId, seen) {
264
- seen.add(project);
265
- const dependencies = this.projectGraph.dependencies[project];
266
- if (dependencies) {
267
- const projectDependencies = dependencies.map((dependency) => dependency.target);
268
- for (const projectDependency of projectDependencies) {
269
- if (seen.has(projectDependency)) {
270
- continue;
271
- }
272
- const dependency = this.findTask({ project: projectDependency, target }, tasks);
273
- if (dependency) {
274
- if (graph.dependencies[taskId].indexOf(dependency.id) === -1) {
275
- graph.dependencies[taskId].push(dependency.id);
276
- }
277
- }
278
- else {
279
- this.addDependencies(projectDependency, target, tasks, graph, taskId, seen);
280
- }
281
- }
282
- }
283
- }
284
- findTask({ project, target }, tasks) {
285
- return tasks.find((t) => t.target.project === project && t.target.target === target);
286
- }
287
- addTaskToGraph(task, graph) {
288
- graph.tasks[task.id] = task;
289
- graph.dependencies[task.id] = [];
290
- }
291
- }
292
- exports.TaskGraphCreator = TaskGraphCreator;
293
- function getDefaultDependencyConfigs(nxJson, runnerOptions) {
294
- var _a, _b;
295
- const defaults = (_a = nxJson.targetDependencies) !== null && _a !== void 0 ? _a : {};
296
- const strictlyOrderedTargets = runnerOptions
297
- ? (_b = runnerOptions.strictlyOrderedTargets) !== null && _b !== void 0 ? _b : ['build']
298
- : [];
299
- // Strictly Ordered Targets depend on their dependencies
300
- for (const target of strictlyOrderedTargets) {
301
- defaults[target] = defaults[target] || [];
302
- defaults[target].push({
303
- target,
304
- projects: 'dependencies',
305
- });
306
- }
307
- return defaults;
308
- }
309
- //# sourceMappingURL=distributed-execution.runner.js.map
1
+ const a7_0x2ced=['error:\x20','../../../utilities/nx-imports','nxCloudDistributedTasksRunner','find','next','Processing\x20task\x20','FileStorage','error','push','exit','strictlyOrderedTargets','Successfully\x20completed\x20running\x20the\x20command.','Status\x20update','map','length','Main\x20job\x20terminated\x20with\x20an\x20error:\x20\x22','roots','Error:','ErrorReporterApi','retrieve','completedTasks','E2EEncryption','scheduleTask','executionStatus','../../file-storage/e2e-encryption','target','has','findTask','Found\x20unknown\x20task:\x20','projectGraph','delete','executionStatus:\x20','../../error/print-run-group-error','hash','terminalOutput','logCommand','filter','See\x20run\x20details\x20at\x20','splitTasksIntoStages','../../../utilities/create-no-new-messages-timeout','strip-json-comments','addDependencies','completeRunGroupWithError','taskId','message','addTaskDependencies','number\x20of\x20completed\x20tasks:\x20','Starting\x20distributed\x20command\x20execution','../../../utilities/waiter','status','dependencies','__esModule','stdout','copyFilesFromCache','apply','startTask','value','addVerticalSeparator','reset','run','../../../utilities/metric-logger','criticalErrorMessage','defaultTargetDependencies','toString','commandStatus','executionId:\x20','Unable\x20to\x20complete\x20a\x20run.','../../api/error-reporter.api','write','parse','note','encryptionKey','VERBOSE_LOGGING','createTaskGraph','addTaskToGraph','Extracting\x20artifacts','projects','createNoNewMessagesTimeout','axiosException','/nx.json','get','./node_modules/.cache/nx','url','wait','log','ENCRYPTION_KEY','printRunGroupError','createStartRequest','runUrl','start','project','size','Waiting...','COMPLETED','done','add','configuration','defineProperty','keys','../../../utilities/environment','DistributedExecutionApi'];(function(_0xbf4dc4,_0x2ced8a){const _0x2fab7a=function(_0x487e3d){while(--_0x487e3d){_0xbf4dc4['push'](_0xbf4dc4['shift']());}};_0x2fab7a(++_0x2ced8a);}(a7_0x2ced,0x96));const a7_0x2fab=function(_0xbf4dc4,_0x2ced8a){_0xbf4dc4=_0xbf4dc4-0x0;let _0x2fab7a=a7_0x2ced[_0xbf4dc4];return _0x2fab7a;};'use strict';var __awaiter=this&&this['__awaiter']||function(_0x42a9e3,_0xae2d89,_0x29f09a,_0x212847){function _0x57a8b1(_0xdc47ff){return _0xdc47ff instanceof _0x29f09a?_0xdc47ff:new _0x29f09a(function(_0x531132){_0x531132(_0xdc47ff);});}return new(_0x29f09a||(_0x29f09a=Promise))(function(_0x2b9e29,_0x586c0a){function _0x88942b(_0x3fc65f){try{_0x3d9cb7(_0x212847[a7_0x2fab('0x38')](_0x3fc65f));}catch(_0x54f3b2){_0x586c0a(_0x54f3b2);}}function _0x34b3c4(_0x79d45f){try{_0x3d9cb7(_0x212847['throw'](_0x79d45f));}catch(_0x40291a){_0x586c0a(_0x40291a);}}function _0x3d9cb7(_0x16c20e){_0x16c20e[a7_0x2fab('0x2d')]?_0x2b9e29(_0x16c20e['value']):_0x57a8b1(_0x16c20e[a7_0x2fab('0x7')])['then'](_0x88942b,_0x34b3c4);}_0x3d9cb7((_0x212847=_0x212847[a7_0x2fab('0x5')](_0x42a9e3,_0xae2d89||[]))['next']());});};Object[a7_0x2fab('0x30')](exports,a7_0x2fab('0x2'),{'value':!![]});exports['TaskGraphCreator']=exports[a7_0x2fab('0x36')]=void 0x0;const stripJsonComments=require(a7_0x2fab('0x5c'));const fs_1=require('fs');const distributed_execution_api_1=require('./distributed-execution.api');const file_storage_1=require('../../file-storage/file-storage');const e2e_encryption_1=require(a7_0x2fab('0x4c'));const waiter_1=require(a7_0x2fab('0x64'));const environment_1=require(a7_0x2fab('0x32'));const print_run_group_error_1=require(a7_0x2fab('0x54'));const create_no_new_messages_timeout_1=require(a7_0x2fab('0x5b'));const metric_logger_1=require(a7_0x2fab('0xb'));const error_reporter_api_1=require(a7_0x2fab('0x12'));const {output,workspaceRoot,getDependencyConfigs,getOutputs,unparse,Cache}=require(a7_0x2fab('0x35'));class NoopLifeCycle{[a7_0x2fab('0x4a')](_0x3ec705){}[a7_0x2fab('0x6')](_0xb18882){}['endTask'](_0x2f70c0,_0x51d9ef){}}function runDistributedExecution(_0xd496a5,_0x228471,_0xd3432,_0x3f51c8,_0x10dbd4,_0x5eda5e,_0x379547){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x433a5c=JSON[a7_0x2fab('0x14')](stripJsonComments((0x0,fs_1['readFileSync'])(workspaceRoot+a7_0x2fab('0x1e'))[a7_0x2fab('0xe')]()));const _0x31dcb0=new TaskOrderer(_0xd3432[a7_0x2fab('0x51')],getDefaultDependencyConfigs(_0x433a5c,_0x228471))[a7_0x2fab('0x5a')](_0x379547);const _0x4dad9c=yield _0xd496a5[a7_0x2fab('0x28')]((0x0,distributed_execution_api_1[a7_0x2fab('0x26')])(_0x5eda5e,_0x31dcb0,_0x228471));return yield processTasks(_0xd496a5,_0x3f51c8,_0x10dbd4,_0x228471,_0x4dad9c,_0x379547,_0xd3432);});}function processTasks(_0x51301d,_0x13e6fe,_0x52e804,_0x391133,_0x5c5425,_0x1b9af4,_0x397851){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x46a82f={};const _0x13d4f5=(0x0,create_no_new_messages_timeout_1[a7_0x2fab('0x1c')])();const _0x263981=new waiter_1['Waiter']();while(!![]){if(environment_1[a7_0x2fab('0x17')]){output[a7_0x2fab('0x15')]({'title':a7_0x2fab('0x2b')});}yield _0x263981[a7_0x2fab('0x22')]();const _0x4fbbbe=yield _0x51301d[a7_0x2fab('0x0')](_0x5c5425);if(environment_1[a7_0x2fab('0x17')]){output[a7_0x2fab('0x15')]({'title':a7_0x2fab('0x40'),'bodyLines':[a7_0x2fab('0x10')+_0x5c5425,a7_0x2fab('0x53')+_0x4fbbbe[a7_0x2fab('0x4b')],a7_0x2fab('0x62')+_0x4fbbbe['completedTasks']['length'],a7_0x2fab('0x34')+_0x4fbbbe[a7_0x2fab('0xc')]]});}if(_0x4fbbbe['criticalErrorMessage']){output[a7_0x2fab('0x3b')]({'title':'Distributed\x20Execution\x20Terminated','bodyLines':[a7_0x2fab('0x45'),_0x4fbbbe[a7_0x2fab('0xc')]]});process['exit'](0x1);}_0x13d4f5(_0x4fbbbe[a7_0x2fab('0x48')][a7_0x2fab('0x42')]);for(const _0x509b95 of _0x4fbbbe['completedTasks']){if(_0x46a82f[_0x509b95['taskId']])continue;yield processTask(_0x13e6fe,_0x52e804,_0x397851,_0x391133,_0x1b9af4,_0x509b95);_0x263981[a7_0x2fab('0x9')]();_0x46a82f[_0x509b95[a7_0x2fab('0x5f')]]=!![];}if(_0x4fbbbe['executionStatus']===a7_0x2fab('0x2c')){return{'commandStatus':_0x4fbbbe[a7_0x2fab('0xf')],'runUrl':_0x4fbbbe[a7_0x2fab('0x27')]};}}});}function processTask(_0x5189b1,_0x5b5a15,_0x24de8f,_0x1a4290,_0x298dd2,_0x56b614){return __awaiter(this,void 0x0,void 0x0,function*(){if(environment_1['VERBOSE_LOGGING']){output[a7_0x2fab('0x15')]({'title':a7_0x2fab('0x39')+_0x56b614[a7_0x2fab('0x5f')]});}const _0x5696e6=_0x298dd2[a7_0x2fab('0x37')](_0x161073=>_0x56b614['taskId']===_0x161073['id']);if(!_0x5696e6){throw new Error(a7_0x2fab('0x50')+_0x56b614[a7_0x2fab('0x5f')]);}if(environment_1[a7_0x2fab('0x17')]){output['note']({'title':'Retrieving\x20artifacts\x20from\x20'+_0x56b614[a7_0x2fab('0x21')]});}yield _0x5189b1[a7_0x2fab('0x47')](_0x56b614[a7_0x2fab('0x55')],_0x56b614['url'],_0x1a4290['cacheDirectory']||a7_0x2fab('0x20'));const _0x28f945=yield _0x5b5a15[a7_0x2fab('0x1f')](Object['assign'](Object['assign']({},_0x5696e6),{'hash':_0x56b614[a7_0x2fab('0x55')]}));const _0x3713be=getOutputs(_0x24de8f[a7_0x2fab('0x51')]['nodes'],_0x5696e6);if(environment_1['VERBOSE_LOGGING']){output[a7_0x2fab('0x15')]({'title':a7_0x2fab('0x1a'),'bodyLines':_0x3713be});}yield _0x5b5a15[a7_0x2fab('0x4')](_0x56b614[a7_0x2fab('0x55')],_0x28f945,_0x3713be);output[a7_0x2fab('0x57')](getCommand(_0x5696e6));process[a7_0x2fab('0x3')][a7_0x2fab('0x13')](_0x28f945[a7_0x2fab('0x56')]);output[a7_0x2fab('0x8')]();});}function getCommand(_0x51b8ed){const _0x3c58b5=unparse(_0x51b8ed['overrides']||{});const _0x8a27bb=_0x51b8ed[a7_0x2fab('0x4d')][a7_0x2fab('0x2f')]?':'+_0x51b8ed[a7_0x2fab('0x4d')]['configuration']:'';return['nx',a7_0x2fab('0xa'),_0x51b8ed[a7_0x2fab('0x4d')][a7_0x2fab('0x29')]+':'+_0x51b8ed[a7_0x2fab('0x4d')][a7_0x2fab('0x4d')]+_0x8a27bb,..._0x3c58b5]['join']('\x20');}const nxCloudDistributedTasksRunner=(_0x4b200d,_0x419918,_0x471125)=>__awaiter(void 0x0,void 0x0,void 0x0,function*(){if(environment_1[a7_0x2fab('0x17')]){output['note']({'title':a7_0x2fab('0x63')});}_0x419918['lifeCycle']=new NoopLifeCycle();const _0x3c92ad=(0x0,environment_1['getRunGroup'])();if(!_0x3c92ad){(0x0,print_run_group_error_1[a7_0x2fab('0x25')])();return process[a7_0x2fab('0x3d')](0x1);}const _0x4fa275=new e2e_encryption_1[(a7_0x2fab('0x49'))](environment_1[a7_0x2fab('0x24')]||_0x419918[a7_0x2fab('0x16')]);const _0xa8db4=new error_reporter_api_1[(a7_0x2fab('0x46'))](_0x419918);const _0x5dc0c7=new file_storage_1[(a7_0x2fab('0x3a'))](_0x4fa275,_0xa8db4,!![]);const _0x3b5599=new Cache(_0x419918);const _0x2ebc4b=new distributed_execution_api_1[(a7_0x2fab('0x33'))](_0x419918);try{const _0x40a53c=yield runDistributedExecution(_0x2ebc4b,_0x419918,_0x471125,_0x5dc0c7,_0x3b5599,_0x3c92ad,_0x4b200d);if(_0x40a53c[a7_0x2fab('0xf')]===0x0){output['success']({'title':a7_0x2fab('0x3f'),'bodyLines':[a7_0x2fab('0x59')+_0x40a53c[a7_0x2fab('0x27')]]});}else{output[a7_0x2fab('0x3b')]({'title':'Command\x20execution\x20failed.','bodyLines':['See\x20run\x20details\x20at\x20'+_0x40a53c[a7_0x2fab('0x27')]]});}yield(0x0,metric_logger_1['submitRunMetrics'])(_0x419918);process[a7_0x2fab('0x3d')](_0x40a53c[a7_0x2fab('0xf')]);}catch(_0x787622){output[a7_0x2fab('0x3b')]({'title':a7_0x2fab('0x11'),'bodyLines':[_0x787622[a7_0x2fab('0x60')]]});if(_0x787622['axiosException']){console[a7_0x2fab('0x23')](_0x787622[a7_0x2fab('0x1d')]);}else{console[a7_0x2fab('0x23')](_0x787622);}try{yield _0x2ebc4b[a7_0x2fab('0x5e')](_0x3c92ad,a7_0x2fab('0x43')+_0x787622[a7_0x2fab('0x60')]+'\x22');}finally{process[a7_0x2fab('0x3d')](0x1);}}});exports[a7_0x2fab('0x36')]=nxCloudDistributedTasksRunner;class TaskOrderer{constructor(_0x38e04f,_0x11aac6){this[a7_0x2fab('0x51')]=_0x38e04f;this[a7_0x2fab('0xd')]=_0x11aac6;}['splitTasksIntoStages'](_0x1c452f){if(_0x1c452f[a7_0x2fab('0x42')]===0x0)return[];const _0x486cb4=[];const _0xfa7f8e=this[a7_0x2fab('0x18')](_0x1c452f);const _0x520ec8=new Set(_0x1c452f['map'](_0x29c760=>_0x29c760['id']));let _0x2bfff1=0x0;while(_0x520ec8[a7_0x2fab('0x2a')]>0x0){const _0x383f42=_0x486cb4[_0x2bfff1]=[];for(const _0x1018b6 of _0x520ec8){let _0x2aba8c=!![];for(const _0x5f28bf of _0xfa7f8e[a7_0x2fab('0x1')][_0x1018b6]){if(_0x520ec8[a7_0x2fab('0x4e')](_0x5f28bf)){_0x2aba8c=![];break;}}if(!_0x2aba8c){continue;}const _0x259dd3=_0xfa7f8e['tasks'][_0x1018b6];_0x383f42[a7_0x2fab('0x3c')](_0x259dd3);}for(const _0x262c46 of _0x383f42){_0x520ec8[a7_0x2fab('0x52')](_0x262c46['id']);}_0x2bfff1++;}return _0x486cb4;}[a7_0x2fab('0x18')](_0xa00008){const _0x220928=new TaskGraphCreator(this['projectGraph'],this['defaultTargetDependencies']);return _0x220928[a7_0x2fab('0x18')](_0xa00008);}}class TaskGraphCreator{constructor(_0x5d6a8d,_0x3eae16){this['projectGraph']=_0x5d6a8d;this[a7_0x2fab('0xd')]=_0x3eae16;}[a7_0x2fab('0x18')](_0x49d376){const _0x2b2b26={'roots':[],'tasks':{},'dependencies':{}};for(const _0x14a137 of _0x49d376){this[a7_0x2fab('0x19')](_0x14a137,_0x2b2b26);const _0x339e80=getDependencyConfigs(_0x14a137[a7_0x2fab('0x4d')],this[a7_0x2fab('0xd')],this['projectGraph']);if(!_0x339e80){continue;}this[a7_0x2fab('0x61')](_0x14a137,_0x339e80,_0x49d376,_0x2b2b26);}_0x2b2b26[a7_0x2fab('0x44')]=Object[a7_0x2fab('0x31')](_0x2b2b26['dependencies'])[a7_0x2fab('0x58')](_0x4a8971=>_0x2b2b26[a7_0x2fab('0x1')][_0x4a8971][a7_0x2fab('0x42')]===0x0);return _0x2b2b26;}[a7_0x2fab('0x61')](_0x343b2b,_0x4bb119,_0x18630d,_0x5361c3){for(const _0x5598f0 of _0x4bb119){if(_0x5598f0['projects']==='self'){for(const _0x56138a of _0x18630d){if(_0x56138a[a7_0x2fab('0x4d')][a7_0x2fab('0x29')]===_0x343b2b['target'][a7_0x2fab('0x29')]&&_0x56138a[a7_0x2fab('0x4d')][a7_0x2fab('0x4d')]===_0x5598f0[a7_0x2fab('0x4d')]){_0x5361c3[a7_0x2fab('0x1')][_0x343b2b['id']][a7_0x2fab('0x3c')](_0x56138a['id']);}}}else if(_0x5598f0[a7_0x2fab('0x1b')]===a7_0x2fab('0x1')){const _0x4608d9=new Set();this[a7_0x2fab('0x5d')](_0x343b2b['target'][a7_0x2fab('0x29')],_0x5598f0['target'],_0x18630d,_0x5361c3,_0x343b2b['id'],_0x4608d9);}}}[a7_0x2fab('0x5d')](_0x3639a4,_0x534373,_0x3f71df,_0x35a484,_0x57b76c,_0x58a094){_0x58a094[a7_0x2fab('0x2e')](_0x3639a4);const _0x204852=this[a7_0x2fab('0x51')][a7_0x2fab('0x1')][_0x3639a4];if(_0x204852){const _0x5ca87e=_0x204852[a7_0x2fab('0x41')](_0xaf9ced=>_0xaf9ced[a7_0x2fab('0x4d')]);for(const _0x463308 of _0x5ca87e){if(_0x58a094[a7_0x2fab('0x4e')](_0x463308)){continue;}const _0x1839ea=this[a7_0x2fab('0x4f')]({'project':_0x463308,'target':_0x534373},_0x3f71df);if(_0x1839ea){if(_0x35a484[a7_0x2fab('0x1')][_0x57b76c]['indexOf'](_0x1839ea['id'])===-0x1){_0x35a484[a7_0x2fab('0x1')][_0x57b76c][a7_0x2fab('0x3c')](_0x1839ea['id']);}}else{this['addDependencies'](_0x463308,_0x534373,_0x3f71df,_0x35a484,_0x57b76c,_0x58a094);}}}}[a7_0x2fab('0x4f')]({project,target},_0x45265d){return _0x45265d[a7_0x2fab('0x37')](_0x3fdcdd=>_0x3fdcdd[a7_0x2fab('0x4d')]['project']===project&&_0x3fdcdd[a7_0x2fab('0x4d')]['target']===target);}[a7_0x2fab('0x19')](_0x566639,_0x45f42e){_0x45f42e['tasks'][_0x566639['id']]=_0x566639;_0x45f42e[a7_0x2fab('0x1')][_0x566639['id']]=[];}}exports['TaskGraphCreator']=TaskGraphCreator;function getDefaultDependencyConfigs(_0x296c5e,_0x35292e){var _0x2fbd29,_0x1c7b36;const _0x73d235=(_0x2fbd29=_0x296c5e['targetDependencies'])!==null&&_0x2fbd29!==void 0x0?_0x2fbd29:{};const _0x59dac3=_0x35292e?(_0x1c7b36=_0x35292e[a7_0x2fab('0x3e')])!==null&&_0x1c7b36!==void 0x0?_0x1c7b36:['build']:[];for(const _0x26ca8e of _0x59dac3){_0x73d235[_0x26ca8e]=_0x73d235[_0x26ca8e]||[];_0x73d235[_0x26ca8e][a7_0x2fab('0x3c')]({'target':_0x26ca8e,'projects':a7_0x2fab('0x1')});}return _0x73d235;}
@@ -1,7 +1,13 @@
1
1
  "use strict";
2
2
  try {
3
3
  const { output } = require('nx/src/utils/output');
4
- const { workspaceRoot } = require('nx/src/utils/app-root');
4
+ let workspaceRoot;
5
+ try {
6
+ workspaceRoot = require('nx/src/utils/app-root').workspaceRoot;
7
+ }
8
+ catch (_a) {
9
+ workspaceRoot = require('nx/src/utils/workspace-root').workspaceRoot;
10
+ }
5
11
  const { unparse, getDependencyConfigs, getOutputs, } = require('nx/src/tasks-runner/utils');
6
12
  const { Cache } = require('nx/src/tasks-runner/cache');
7
13
  const { tasksRunner } = require('nx/tasks-runner/default').default;
@@ -16,7 +22,7 @@ try {
16
22
  exports.getOutputs = getOutputs;
17
23
  exports.Cache = Cache;
18
24
  }
19
- catch (_a) {
25
+ catch (_b) {
20
26
  const { output } = require('@nrwl/workspace/src/utilities/output');
21
27
  const { appRootPath } = require('@nrwl/tao/src/utils/app-root');
22
28
  const { unparse, getDependencyConfigs, getOutputs, } = require('@nrwl/workspace/src/tasks-runner/utils');
@@ -1 +1 @@
1
- {"version":3,"file":"nx-imports.js","sourceRoot":"","sources":["../../../../../../libs/nx-packages/nx-cloud/lib/utilities/nx-imports.ts"],"names":[],"mappings":";AAAA,IAAI;IACF,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAClD,MAAM,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAC3D,MAAM,EACJ,OAAO,EACP,oBAAoB,EACpB,UAAU,GACX,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;IACzC,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;IACvD,MAAM,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC,OAAO,CAAC;IACnE,MAAM,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC,gCAAgC,CAAC,CAAC;IAEzE,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IACpC,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC;IACxB,OAAO,CAAC,aAAa,GAAG,aAAa,CAAC;IACtC,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC;IAC1B,OAAO,CAAC,WAAW,GAAG,WAAW,CAAC;IAClC,OAAO,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;IAChD,OAAO,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;IACpD,OAAO,CAAC,UAAU,GAAG,UAAU,CAAC;IAChC,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC;CACvB;AAAC,WAAM;IACN,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,sCAAsC,CAAC,CAAC;IACnE,MAAM,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;IAChE,MAAM,EACJ,OAAO,EACP,oBAAoB,EACpB,UAAU,GACX,GAAG,OAAO,CAAC,wCAAwC,CAAC,CAAC;IACtD,MAAM,EACJ,aAAa,GACd,GAAG,OAAO,CAAC,kDAAkD,CAAC,CAAC;IAEhE,IAAI,kBAAkB,CAAC;IACvB,IAAI;QACF,kBAAkB;YAChB,OAAO,CAAC,6CAA6C,CAAC,CAAC,kBAAkB,CAAC;KAC7E;IAAC,OAAO,CAAC,EAAE,GAAE;IACd,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,wCAAwC,CAAC,CAAC;IAEpE,OAAO,CAAC,oBAAoB,GAAG,KAAK,CAAC;IACrC,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC;IACxB,OAAO,CAAC,aAAa,GAAG,WAAW,CAAC;IACpC,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC;IAC1B,OAAO,CAAC,WAAW,GAAG,aAAa,CAAC;IACpC,OAAO,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;IAChD,OAAO,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;IACpD,OAAO,CAAC,UAAU,GAAG,UAAU,CAAC;IAChC,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC;CACvB"}
1
+ {"version":3,"file":"nx-imports.js","sourceRoot":"","sources":["../../../../../../libs/nx-packages/nx-cloud/lib/utilities/nx-imports.ts"],"names":[],"mappings":";AAAA,IAAI;IACF,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAClD,IAAI,aAAa,CAAC;IAClB,IAAI;QACF,aAAa,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC,aAAa,CAAC;KAChE;IAAC,OAAO,EAAE,EAAE;QACX,aAAa,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAAC,aAAa,CAAC;KACtE;IACD,MAAM,EACJ,OAAO,EACP,oBAAoB,EACpB,UAAU,GACX,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;IACzC,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;IACvD,MAAM,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC,OAAO,CAAC;IACnE,MAAM,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC,gCAAgC,CAAC,CAAC;IAEzE,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IACpC,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC;IACxB,OAAO,CAAC,aAAa,GAAG,aAAa,CAAC;IACtC,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC;IAC1B,OAAO,CAAC,WAAW,GAAG,WAAW,CAAC;IAClC,OAAO,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;IAChD,OAAO,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;IACpD,OAAO,CAAC,UAAU,GAAG,UAAU,CAAC;IAChC,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC;CACvB;AAAC,WAAM;IACN,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,sCAAsC,CAAC,CAAC;IACnE,MAAM,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;IAChE,MAAM,EACJ,OAAO,EACP,oBAAoB,EACpB,UAAU,GACX,GAAG,OAAO,CAAC,wCAAwC,CAAC,CAAC;IACtD,MAAM,EACJ,aAAa,GACd,GAAG,OAAO,CAAC,kDAAkD,CAAC,CAAC;IAEhE,IAAI,kBAAkB,CAAC;IACvB,IAAI;QACF,kBAAkB;YAChB,OAAO,CAAC,6CAA6C,CAAC,CAAC,kBAAkB,CAAC;KAC7E;IAAC,OAAO,CAAC,EAAE,GAAE;IACd,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,wCAAwC,CAAC,CAAC;IAEpE,OAAO,CAAC,oBAAoB,GAAG,KAAK,CAAC;IACrC,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC;IACxB,OAAO,CAAC,aAAa,GAAG,WAAW,CAAC;IACpC,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC;IAC1B,OAAO,CAAC,WAAW,GAAG,aAAa,CAAC;IACpC,OAAO,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;IAChD,OAAO,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;IACpD,OAAO,CAAC,UAAU,GAAG,UAAU,CAAC;IAChC,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC;CACvB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nrwl/nx-cloud",
3
- "version": "14.0.5-beta.1",
3
+ "version": "14.0.6",
4
4
  "description": "Nx Cloud plugin for Nx",
5
5
  "keywords": [
6
6
  "Monorepo",