@unisphere/cli 1.15.0 → 1.16.0

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.
Files changed (37) hide show
  1. package/bundler/context/rollup.js +1 -0
  2. package/bundler/package/rollup.js +1 -0
  3. package/package.json +3 -3
  4. package/src/lib/commands/check/command.d.ts +2 -0
  5. package/src/lib/commands/check/command.js +301 -0
  6. package/src/lib/commands/check/command.js.map +1 -0
  7. package/src/lib/commands/context/publish/execute/execute.js +79 -83
  8. package/src/lib/commands/context/publish/execute/execute.js.map +1 -1
  9. package/src/lib/commands/context/publish/prepare/prepare.js +100 -89
  10. package/src/lib/commands/context/publish/prepare/prepare.js.map +1 -1
  11. package/src/lib/commands/context/serve-command.js +8 -7
  12. package/src/lib/commands/context/serve-command.js.map +1 -1
  13. package/src/lib/commands/how-to/command.d.ts +2 -0
  14. package/src/lib/commands/how-to/command.js +164 -0
  15. package/src/lib/commands/how-to/command.js.map +1 -0
  16. package/src/lib/commands/local/local-command.js +2 -2
  17. package/src/lib/commands/local/local-command.js.map +1 -1
  18. package/src/lib/commands/local/projects-list/command.d.ts +2 -0
  19. package/src/lib/commands/local/{info → projects-list}/command.js +6 -5
  20. package/src/lib/commands/local/projects-list/command.js.map +1 -0
  21. package/src/lib/commands/package/build-command.js +7 -6
  22. package/src/lib/commands/package/build-command.js.map +1 -1
  23. package/src/lib/commands/package/link/command.js +16 -14
  24. package/src/lib/commands/package/link/command.js.map +1 -1
  25. package/src/lib/commands/package/publish/publish.js +17 -0
  26. package/src/lib/commands/package/publish/publish.js.map +1 -1
  27. package/src/lib/unisphere.js +4 -0
  28. package/src/lib/unisphere.js.map +1 -1
  29. package/src/lib/utils/listr2/create-exec-task.js +3 -0
  30. package/src/lib/utils/listr2/create-exec-task.js.map +1 -1
  31. package/src/lib/utils/listr2/defaults.js +2 -0
  32. package/src/lib/utils/listr2/defaults.js.map +1 -1
  33. package/src/lib/utils/unisphere/build-unisphere-elements.d.ts +14 -16
  34. package/src/lib/utils/unisphere/build-unisphere-elements.js +21 -32
  35. package/src/lib/utils/unisphere/build-unisphere-elements.js.map +1 -1
  36. package/src/lib/commands/local/info/command.d.ts +0 -2
  37. package/src/lib/commands/local/info/command.js.map +0 -1
@@ -19,6 +19,7 @@ const isRunningFromUnisphereEnvironment = process.env.UNISPHERE === 'true';
19
19
  console.log('[unisphere] Helpful Tip: When running a build if it is using outdated rollup file, you should clear the nx cache by running `rm -rf node_modules/.cache/nx && npx nx reset`.');
20
20
 
21
21
  if (!isRunningFromUnisphereEnvironment) {
22
+ console.error('FATAL ERROR: Bundling library must be run using the unisphere-cli (did you ran the build command without the unisphere-cli?)');
22
23
  throw new Error('FATAL ERROR: Bundling library must be run using the unisphere-cli (did you ran the build command without the unisphere-cli?)');
23
24
  }
24
25
 
@@ -13,6 +13,7 @@ const isRunningFromUnisphereEnvironment = process.env.UNISPHERE === 'true';
13
13
  console.log('[unisphere] Helpful Tip: When running a build if it is using outdated rollup file, you should clear the nx cache by running `rm -rf node_modules/.cache/nx && npx nx reset`.');
14
14
 
15
15
  if (!isRunningFromUnisphereEnvironment) {
16
+ console.error('FATAL ERROR: Bundling library must be run using the unisphere-cli (did you ran the build command without the unisphere-cli?)');
16
17
  throw new Error('FATAL ERROR: Bundling library must be run using the unisphere-cli (did you ran the build command without the unisphere-cli?)');
17
18
  }
18
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unisphere/cli",
3
- "version": "1.15.0",
3
+ "version": "1.16.0",
4
4
  "bin": {
5
5
  "unisphere": "./src/index.js"
6
6
  },
@@ -33,11 +33,11 @@
33
33
  "commander": "9.4.1",
34
34
  "debug": "4.3.4",
35
35
  "listr2": "8.2.5",
36
+ "colorette": "2.0.20",
37
+ "cli-table3": "0.6.5",
36
38
  "fs-extra": "10.1.0",
37
39
  "execa": "5.1.1",
38
40
  "@octokit/rest": "19.0.5",
39
- "colorette": "2.0.20",
40
- "cli-table3": "0.6.5",
41
41
  "@aws-sdk/client-s3": "3.216.0",
42
42
  "@aws-sdk/client-sts": "3.216.0",
43
43
  "sisteransi": "1.0.5",
@@ -0,0 +1,2 @@
1
+ import { Command } from 'commander';
2
+ export declare const createCheckCommand: () => Command;
@@ -0,0 +1,301 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createCheckCommand = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const commander_1 = require("commander");
6
+ const debug_1 = require("debug");
7
+ const listr2_1 = require("listr2");
8
+ const utils_1 = require("../../utils/utils");
9
+ const workspace_1 = require("../../utils/unisphere/workspace");
10
+ const defaults_1 = require("../../utils/listr2/defaults");
11
+ const colorette_1 = require("colorette");
12
+ const Table = require("cli-table3");
13
+ const build_unisphere_elements_1 = require("../../utils/unisphere/build-unisphere-elements");
14
+ const debug = (0, debug_1.default)('unisphere:package:build');
15
+ const createCheckCommand = () => {
16
+ const command = new commander_1.Command('check');
17
+ command
18
+ .description('check the project readiness for deployment')
19
+ .option('--verbose', 'output debug logs', false)
20
+ .option('--cwd <name>', 'the working directory')
21
+ .hook('preAction', utils_1.printVerboseHook)
22
+ .action((options) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
23
+ const cwd = options.cwd || process.cwd();
24
+ const mainTask = new listr2_1.Listr([
25
+ {
26
+ title: 'Getting workspace',
27
+ task: (ctx) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
28
+ const workspace = yield (0, workspace_1.getUnisphereWorkspace)(cwd, {
29
+ suspendRecursion: true,
30
+ });
31
+ if (!workspace) {
32
+ debug(`No .unisphere file found in the directory ${cwd}`);
33
+ throw new Error(`No .unisphere file found in the directory`);
34
+ }
35
+ ctx.workspace = workspace;
36
+ }),
37
+ },
38
+ {
39
+ title: `Checking workspace readiness`,
40
+ task: (ctx, task) => {
41
+ const tasks = task.newListr([], {
42
+ concurrent: true,
43
+ exitOnError: false,
44
+ });
45
+ if (ctx.workspace.config.elements.workspace) {
46
+ tasks.add({
47
+ title: `Checking workspace`,
48
+ task: (ctx, task) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
49
+ return (0, build_unisphere_elements_1.createListrForBuildingUnisphereContext)({
50
+ cwd,
51
+ nxProjectName: ctx.workspace.config.elements.workspace.nxProjectName,
52
+ parentTask: task,
53
+ production: options.production,
54
+ lint: false,
55
+ lintFix: false,
56
+ verbose: options.verbose,
57
+ ctx: {
58
+ failure: {
59
+ type: 'workspace',
60
+ name: 'workspace',
61
+ command: 'npx unisphere context build workspace --verbose',
62
+ status: false,
63
+ },
64
+ },
65
+ postTask: {
66
+ title: 'Reporting success',
67
+ task: () => {
68
+ ctx.report.workspace = {
69
+ name: 'workspace',
70
+ command: 'npx unisphere context build workspace --verbose',
71
+ status: true,
72
+ };
73
+ },
74
+ },
75
+ });
76
+ }),
77
+ });
78
+ }
79
+ if (ctx.workspace.config.elements.loader) {
80
+ tasks.add({
81
+ title: `Checking loader`,
82
+ task: (ctx, task) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
83
+ return (0, build_unisphere_elements_1.createListrForBuildingUnisphereContext)({
84
+ cwd,
85
+ nxProjectName: ctx.workspace.config.elements.loader.nxProjectName,
86
+ parentTask: task,
87
+ production: options.production,
88
+ lint: false,
89
+ lintFix: false,
90
+ verbose: options.verbose,
91
+ ctx: {
92
+ failure: {
93
+ type: 'loader',
94
+ name: 'loader',
95
+ command: 'npx unisphere context build loader --verbose',
96
+ status: false,
97
+ },
98
+ },
99
+ postTask: {
100
+ title: 'Reporting success',
101
+ task: () => {
102
+ ctx.report.workspace = {
103
+ name: 'loader',
104
+ command: 'npx unisphere context build loader --verbose',
105
+ status: true,
106
+ };
107
+ },
108
+ },
109
+ });
110
+ }),
111
+ });
112
+ }
113
+ if (ctx.workspace.config.elements.contexts) {
114
+ for (const [contextName, contextConfig] of Object.entries(ctx.workspace.config.elements.contexts)) {
115
+ tasks.add({
116
+ title: `Checking context '${contextName}'`,
117
+ task: (ctx, task) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
118
+ return (0, build_unisphere_elements_1.createListrForBuildingUnisphereContext)({
119
+ cwd,
120
+ nxProjectName: contextConfig.nxProjectName,
121
+ parentTask: task,
122
+ production: options.production,
123
+ lint: false,
124
+ lintFix: false,
125
+ verbose: options.verbose,
126
+ ctx: {
127
+ failure: {
128
+ type: 'context',
129
+ name: contextName,
130
+ command: `npx unisphere context build ${contextName} --verbose`,
131
+ status: false,
132
+ },
133
+ },
134
+ postTask: {
135
+ title: 'Reporting success',
136
+ task: () => {
137
+ ctx.report.contexts.push({
138
+ name: contextName,
139
+ command: `npx unisphere context build ${contextName} --verbose`,
140
+ status: true,
141
+ });
142
+ },
143
+ },
144
+ });
145
+ }),
146
+ });
147
+ }
148
+ }
149
+ if (ctx.workspace.config.elements.packages) {
150
+ for (const [packageName, packageConfig] of Object.entries(ctx.workspace.config.elements.packages)) {
151
+ tasks.add({
152
+ title: `Checking package '${packageName}'`,
153
+ task: (ctx, task) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
154
+ return (0, build_unisphere_elements_1.createListrForBuildingUnispherePackage)({
155
+ cwd,
156
+ nxProjectName: packageConfig.nxProjectName,
157
+ distFolder: packageConfig.distFolder,
158
+ parentTask: task,
159
+ production: options.production,
160
+ lint: true,
161
+ lintFix: true,
162
+ verbose: options.verbose,
163
+ ctx: {
164
+ failure: {
165
+ type: 'package',
166
+ name: packageName,
167
+ command: `npx unisphere package build ${packageName} --verbose`,
168
+ status: false,
169
+ },
170
+ },
171
+ postTask: {
172
+ title: 'Reporting success',
173
+ task: () => {
174
+ ctx.report.packages.push({
175
+ name: packageName,
176
+ command: `npx unisphere package build ${packageName} --verbose`,
177
+ status: true,
178
+ });
179
+ },
180
+ },
181
+ });
182
+ }),
183
+ });
184
+ }
185
+ }
186
+ return tasks;
187
+ },
188
+ },
189
+ {
190
+ title: `Collecting errors`,
191
+ task: (ctx, task) => {
192
+ var _a;
193
+ (_a = mainTask.errors) === null || _a === void 0 ? void 0 : _a.forEach((error) => {
194
+ var _a;
195
+ if ((_a = error.ctx) === null || _a === void 0 ? void 0 : _a.failure) {
196
+ const failure = error.ctx.failure;
197
+ switch (failure.type) {
198
+ case 'workspace':
199
+ ctx.report.workspace = failure;
200
+ break;
201
+ case 'loader':
202
+ ctx.report.loader = failure;
203
+ break;
204
+ case 'context':
205
+ ctx.report.contexts.push(failure);
206
+ break;
207
+ case 'package':
208
+ ctx.report.packages.push(failure);
209
+ break;
210
+ }
211
+ }
212
+ });
213
+ },
214
+ },
215
+ {
216
+ title: `Create report`,
217
+ task: (ctx, task) => {
218
+ const table = new Table({
219
+ head: ['Element', 'Type', 'Status', 'Command'],
220
+ style: {
221
+ head: ['green', 'bold'],
222
+ },
223
+ });
224
+ if (ctx.report.workspace || ctx.report.loader) {
225
+ table.push([
226
+ {
227
+ colSpan: 4,
228
+ hAlign: 'center',
229
+ content: (0, colorette_1.bold)((0, colorette_1.green)('Core')),
230
+ },
231
+ ]);
232
+ if (ctx.report.workspace) {
233
+ const { name, command, status } = ctx.report.workspace;
234
+ table.push([
235
+ (0, colorette_1.bold)('workspace'),
236
+ 'Context',
237
+ status ? (0, colorette_1.green)('OK') : (0, colorette_1.red)('FAILED'),
238
+ command,
239
+ ]);
240
+ }
241
+ if (ctx.report.loader) {
242
+ const { name, command, status } = ctx.report.loader;
243
+ table.push([
244
+ (0, colorette_1.bold)('loader'),
245
+ 'Context',
246
+ status ? (0, colorette_1.green)('OK') : (0, colorette_1.red)('FAILED'),
247
+ command,
248
+ ]);
249
+ }
250
+ }
251
+ if (ctx.report.packages.length > 0) {
252
+ table.push([
253
+ {
254
+ colSpan: 4,
255
+ hAlign: 'center',
256
+ content: (0, colorette_1.bold)((0, colorette_1.green)('Packages')),
257
+ },
258
+ ]);
259
+ for (const { name, command, status } of ctx.report.packages) {
260
+ table.push([
261
+ (0, colorette_1.bold)(name),
262
+ 'Package',
263
+ status ? (0, colorette_1.green)('OK') : (0, colorette_1.red)('FAILED'),
264
+ command,
265
+ ]);
266
+ }
267
+ }
268
+ if (ctx.report.contexts.length > 0) {
269
+ table.push([{ colSpan: 4, content: (0, colorette_1.bold)((0, colorette_1.green)('Contexts')) }]);
270
+ for (const { name, command, status } of ctx.report.contexts) {
271
+ table.push([
272
+ (0, colorette_1.bold)(name),
273
+ 'Context',
274
+ status ? (0, colorette_1.green)('OK') : (0, colorette_1.red)('FAILED'),
275
+ command,
276
+ ]);
277
+ }
278
+ }
279
+ if (table.length === 0) {
280
+ console.log('The project has no Unisphere elements');
281
+ }
282
+ else {
283
+ console.log(table.toString());
284
+ }
285
+ },
286
+ },
287
+ ], Object.assign(Object.assign({}, (0, defaults_1.getDefaultListrOptions)()), { collectErrors: 'full' }));
288
+ yield mainTask.run({
289
+ report: {
290
+ workspace: null,
291
+ loader: null,
292
+ packages: [],
293
+ contexts: [],
294
+ },
295
+ workspace: null,
296
+ });
297
+ }));
298
+ return command;
299
+ };
300
+ exports.createCheckCommand = createCheckCommand;
301
+ //# sourceMappingURL=command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command.js","sourceRoot":"","sources":["../../../../../../../packages/unisphere-cli/src/lib/commands/check/command.ts"],"names":[],"mappings":";;;;AAAA,yCAAsD;AACtD,iCAA0B;AAC1B,mCAA+B;AAC/B,6CAAqD;AACrD,+DAAwE;AACxE,0DAAqE;AAErE,yCAA6C;AAC7C,oCAAoC;AACpC,6FAGwD;AAExD,MAAM,KAAK,GAAG,IAAA,eAAK,EAAC,yBAAyB,CAAC,CAAC;AAYxC,MAAM,kBAAkB,GAAG,GAAY,EAAE;IAC9C,MAAM,OAAO,GAAG,IAAI,mBAAO,CAAC,OAAO,CAAC,CAAC;IAErC,OAAO;SACJ,WAAW,CAAC,4CAA4C,CAAC;SACzD,MAAM,CAAC,WAAW,EAAE,mBAAmB,EAAE,KAAK,CAAC;SAC/C,MAAM,CAAC,cAAc,EAAE,uBAAuB,CAAC;SAC/C,IAAI,CAAC,WAAW,EAAE,wBAA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IAEL,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAxTW,QAAA,kBAAkB,sBAwT7B"}
@@ -20,96 +20,92 @@ function execute(options) {
20
20
  title: 'Sync workspace elements',
21
21
  task: (ctx, task) => tslib_1.__awaiter(this, void 0, void 0, function* () {
22
22
  return task.newListr([
23
- unisphereElements.workspace
24
- ? {
25
- title: 'Sync workspace',
26
- task: (ctx, task) => tslib_1.__awaiter(this, void 0, void 0, function* () {
27
- var _a;
28
- if (((_a = unisphereElements.workspace) === null || _a === void 0 ? void 0 : _a.distributionChannel) ===
29
- 'none') {
30
- task.title = `Skipping workspace runtime because it has no distribution channel`;
31
- task.skip();
32
- return;
33
- }
34
- if (options.tagsCheck &&
35
- !unisphereElements.workspace.hasGithubTag) {
36
- task.title = `Skipping workspace '${unisphereElements.workspace.nxProjectName}' because it doesn't have a github tag`;
37
- task.skip();
38
- return;
39
- }
40
- const bucketPrefix = (0, unisphere_utils_1.getWorkspaceBucketPrefix)(unisphereElements.workspace.version);
41
- yield (0, sync_element_1.syncElement)({
42
- options,
43
- name: 'workspace',
44
- bucketPrefix,
45
- nxProjectName: unisphereElements.workspace.nxProjectName,
46
- version: unisphereElements.workspace.version,
47
- });
48
- }),
49
- }
50
- : null,
51
- unisphereElements.loader
52
- ? {
53
- title: 'Sync loader',
54
- task: (ctx, task) => tslib_1.__awaiter(this, void 0, void 0, function* () {
55
- var _b;
56
- if (((_b = unisphereElements.loader) === null || _b === void 0 ? void 0 : _b.distributionChannel) === 'none') {
57
- task.title = `Skipping loader runtime because it has no distribution channel`;
58
- task.skip();
59
- return;
60
- }
61
- if (options.tagsCheck &&
62
- !unisphereElements.loader.hasGithubTag) {
63
- task.title = `Skipping loader because it doesn't have a github tag`;
64
- task.skip();
65
- return;
66
- }
67
- const bucketPrefix = (0, unisphere_utils_1.getLoaderBucketPrefix)(unisphereElements.loader.version);
68
- yield (0, sync_element_1.syncElement)({
69
- options,
70
- bucketPrefix,
71
- name: 'loader',
72
- nxProjectName: unisphereElements.loader.nxProjectName,
73
- version: unisphereElements.loader.version,
74
- });
75
- }),
76
- }
77
- : null,
78
- ].filter(Boolean));
79
- }),
80
- },
81
- Object.keys(unisphereElements.contexts || {}).length !== 0
82
- ? {
83
- title: 'Sync contexts',
84
- task: (ctx, task) => tslib_1.__awaiter(this, void 0, void 0, function* () {
85
- const contextTasks = Object.entries(unisphereElements.contexts || []).map(([context, { hasGithubTag, version, nxProjectName, distributionChannel },]) => ({
86
- title: `Sync context: ${context}`,
87
- skip: () => {
88
- if (distributionChannel === 'none') {
89
- debug(`Skipping context '${context}' because it has no distribution channel`);
90
- return true;
23
+ {
24
+ title: 'Sync workspace',
25
+ enabled: () => !!unisphereElements.workspace,
26
+ task: (ctx, task) => tslib_1.__awaiter(this, void 0, void 0, function* () {
27
+ var _a;
28
+ if (((_a = unisphereElements.workspace) === null || _a === void 0 ? void 0 : _a.distributionChannel) === 'none') {
29
+ task.title = `Skipping workspace runtime because it has no distribution channel`;
30
+ task.skip();
31
+ return;
91
32
  }
92
- if (options.tagsCheck && !hasGithubTag) {
93
- debug(`Skipping context '${context}' because it doesn't have a github tag`);
94
- return true;
33
+ if (options.tagsCheck &&
34
+ !unisphereElements.workspace.hasGithubTag) {
35
+ task.title = `Skipping workspace '${unisphereElements.workspace.nxProjectName}' because it doesn't have a github tag`;
36
+ task.skip();
37
+ return;
95
38
  }
96
- return false;
97
- },
98
- task: () => tslib_1.__awaiter(this, void 0, void 0, function* () {
99
- const bucketPrefix = (0, unisphere_utils_1.getElementContextBucketPrefix)(unisphereWorkspace.name, context, version);
39
+ const bucketPrefix = (0, unisphere_utils_1.getWorkspaceBucketPrefix)(unisphereElements.workspace.version);
100
40
  yield (0, sync_element_1.syncElement)({
101
41
  options,
42
+ name: 'workspace',
102
43
  bucketPrefix,
103
- name: context,
104
- nxProjectName,
105
- version,
44
+ nxProjectName: unisphereElements.workspace.nxProjectName,
45
+ version: unisphereElements.workspace.version,
106
46
  });
107
47
  }),
108
- }));
109
- return task.newListr(contextTasks);
110
- }),
111
- }
112
- : null,
48
+ },
49
+ {
50
+ title: 'Sync loader',
51
+ enabled: () => !!unisphereElements.loader,
52
+ task: (ctx, task) => tslib_1.__awaiter(this, void 0, void 0, function* () {
53
+ var _b;
54
+ if (((_b = unisphereElements.loader) === null || _b === void 0 ? void 0 : _b.distributionChannel) === 'none') {
55
+ task.title = `Skipping loader runtime because it has no distribution channel`;
56
+ task.skip();
57
+ return;
58
+ }
59
+ if (options.tagsCheck &&
60
+ !unisphereElements.loader.hasGithubTag) {
61
+ task.title = `Skipping loader because it doesn't have a github tag`;
62
+ task.skip();
63
+ return;
64
+ }
65
+ const bucketPrefix = (0, unisphere_utils_1.getLoaderBucketPrefix)(unisphereElements.loader.version);
66
+ yield (0, sync_element_1.syncElement)({
67
+ options,
68
+ bucketPrefix,
69
+ name: 'loader',
70
+ nxProjectName: unisphereElements.loader.nxProjectName,
71
+ version: unisphereElements.loader.version,
72
+ });
73
+ }),
74
+ },
75
+ ]);
76
+ }),
77
+ },
78
+ {
79
+ title: 'Sync contexts',
80
+ enabled: Object.keys(unisphereElements.contexts || {}).length !== 0,
81
+ task: (ctx, task) => tslib_1.__awaiter(this, void 0, void 0, function* () {
82
+ const contextTasks = Object.entries(unisphereElements.contexts || []).map(([context, { hasGithubTag, version, nxProjectName, distributionChannel },]) => ({
83
+ title: `Sync context: ${context}`,
84
+ skip: () => {
85
+ if (distributionChannel === 'none') {
86
+ debug(`Skipping context '${context}' because it has no distribution channel`);
87
+ return true;
88
+ }
89
+ if (options.tagsCheck && !hasGithubTag) {
90
+ debug(`Skipping context '${context}' because it doesn't have a github tag`);
91
+ return true;
92
+ }
93
+ return false;
94
+ },
95
+ task: () => tslib_1.__awaiter(this, void 0, void 0, function* () {
96
+ const bucketPrefix = (0, unisphere_utils_1.getElementContextBucketPrefix)(unisphereWorkspace.name, context, version);
97
+ yield (0, sync_element_1.syncElement)({
98
+ options,
99
+ bucketPrefix,
100
+ name: context,
101
+ nxProjectName,
102
+ version,
103
+ });
104
+ }),
105
+ }));
106
+ return task.newListr(contextTasks);
107
+ }),
108
+ },
113
109
  ].filter(Boolean), (0, defaults_1.getDefaultListrOptions)());
114
110
  yield tasks.run();
115
111
  });
@@ -1 +1 @@
1
- {"version":3,"file":"execute.js","sourceRoot":"","sources":["../../../../../../../../../packages/unisphere-cli/src/lib/commands/context/publish/execute/execute.ts"],"names":[],"mappings":";;;;AAAA,iCAA0B;AAC1B,mCAA+B;AAE/B,qEAA8E;AAC9E,iDAA6C;AAC7C,uEAI2C;AAC3C,gEAA2E;AAE3E,MAAM,KAAK,GAAG,IAAA,eAAK,EAAC,kCAAkC,CAAC,CAAC;AAExD,SAAsB,OAAO,CAAC,OAAoB;;QAChD,KAAK,CAAC,YAAY,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAE7C,MAAM,kBAAkB,GAAG,MAAM,IAAA,iCAAqB,EAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpE,MAAM,iBAAiB,GAAG,kBAAkB,CAAC,MAAM,CAAC,QAAQ,CAAC;QAE7D,KAAK,CACH,+CAA+C,kBAAkB,CAAC,IAAI,EAAE,CACzE,CAAC;QAEF,MAAM,KAAK,GAAG,IAAI,cAAK,CACrB;YACE;gBACE,KAAK,EAAE,yBAAyB;gBAChC,IAAI,EAAE,CAAO,GAAG,EAAE,IAAI,EAAE,EAAE;oBACxB,OAAO,IAAI,CAAC,QAAQ,CAClB;wBACE,iBAAiB,CAAC,SAAS;4BACzB,CAAC,CAAC;gCACE,KAAK,EAAE,gBAAgB;gCACvB,IAAI,EAAE,CAAO,GAAG,EAAE,IAAI,EAAE,EAAE;;oCACxB,IACE,CAAA,MAAA,iBAAiB,CAAC,SAAS,0CAAE,mBAAmB;wCAChD,MAAM,EACN;wCACA,IAAI,CAAC,KAAK,GAAG,mEAAmE,CAAC;wCACjF,IAAI,CAAC,IAAI,EAAE,CAAC;wCACZ,OAAO;qCACR;oC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CACb,OAAO;iCACR,CAAC,CAAC;4BACL,CAAC,CAAA;yBACF,CAAC,CACH,CAAC;wBAEF,OAAO,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;oBACrC,CAAC,CAAA;iBACF;gBACH,CAAC,CAAC,IAAI;SACT,CAAC,MAAM,CAAC,OAAO,CAAC,EACjB,IAAA,iCAAsB,GAAE,CACzB,CAAC;QAEF,MAAM,KAAK,CAAC,GAAG,EAAE,CAAC;IACpB,CAAC;CAAA;AAjJD,0BAiJC"}
1
+ {"version":3,"file":"execute.js","sourceRoot":"","sources":["../../../../../../../../../packages/unisphere-cli/src/lib/commands/context/publish/execute/execute.ts"],"names":[],"mappings":";;;;AAAA,iCAA0B;AAC1B,mCAA+B;AAE/B,qEAA8E;AAC9E,iDAA6C;AAC7C,uEAI2C;AAC3C,gEAA2E;AAE3E,MAAM,KAAK,GAAG,IAAA,eAAK,EAAC,kCAAkC,CAAC,CAAC;AAExD,SAAsB,OAAO,CAAC,OAAoB;;QAChD,KAAK,CAAC,YAAY,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAE7C,MAAM,kBAAkB,GAAG,MAAM,IAAA,iCAAqB,EAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpE,MAAM,iBAAiB,GAAG,kBAAkB,CAAC,MAAM,CAAC,QAAQ,CAAC;QAE7D,KAAK,CACH,+CAA+C,kBAAkB,CAAC,IAAI,EAAE,CACzE,CAAC;QAEF,MAAM,KAAK,GAAG,IAAI,cAAK,CACrB;YACE;gBACE,KAAK,EAAE,yBAAyB;gBAChC,IAAI,EAAE,CAAO,GAAG,EAAE,IAAI,EAAE,EAAE;oBACxB,OAAO,IAAI,CAAC,QAAQ,CAAC;wBACnB;4BACE,KAAK,EAAE,gBAAgB;4BACvB,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,iBAAiB,CAAC,SAAS;4BAC5C,IAAI,EAAE,CAAO,GAAG,EAAE,IAAI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