@unisphere/cli 1.21.1 → 1.22.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 (102) hide show
  1. package/bundler/package/rollup.js +4 -4
  2. package/bundler/{context → runtime}/rollup.js +6 -6
  3. package/package.json +4 -6
  4. package/src/lib/commands/check/command.js +27 -27
  5. package/src/lib/commands/how-to/command.js +15 -15
  6. package/src/lib/commands/info/command.js +6 -6
  7. package/src/lib/commands/package/publish/publish.js +1 -1
  8. package/src/lib/commands/{context → runtime}/build-command.js +12 -12
  9. package/src/lib/commands/{context → runtime}/build-command.js.map +1 -1
  10. package/src/lib/commands/runtime/command.js +17 -0
  11. package/src/lib/commands/runtime/command.js.map +1 -0
  12. package/src/lib/commands/{context → runtime}/publish/command.js +5 -5
  13. package/src/lib/commands/{context → runtime}/publish/command.js.map +1 -1
  14. package/src/lib/commands/{context → runtime}/publish/execute/execute.js +10 -10
  15. package/src/lib/commands/{context → runtime}/publish/execute/execute.js.map +1 -1
  16. package/src/lib/commands/{context → runtime}/publish/execute/sync-element.js.map +1 -1
  17. package/src/lib/commands/{context → runtime}/publish/prepare/build-nx-runtimes.d.ts +2 -2
  18. package/src/lib/commands/{context → runtime}/publish/prepare/build-nx-runtimes.js +14 -14
  19. package/src/lib/commands/{context → runtime}/publish/prepare/build-nx-runtimes.js.map +1 -1
  20. package/src/lib/commands/{context → runtime}/publish/prepare/prepare.js +14 -14
  21. package/src/lib/commands/{context → runtime}/publish/prepare/prepare.js.map +1 -1
  22. package/src/lib/commands/runtime/publish/types.js.map +1 -0
  23. package/src/lib/commands/{context → runtime}/serve-command.js +17 -17
  24. package/src/lib/commands/{context → runtime}/serve-command.js.map +1 -1
  25. package/src/lib/commands/{runtime → runtime-json}/activate/check-element-runtime-availability.d.ts +2 -2
  26. package/src/lib/commands/{runtime → runtime-json}/activate/check-element-runtime-availability.js +2 -2
  27. package/src/lib/commands/runtime-json/activate/check-element-runtime-availability.js.map +1 -0
  28. package/src/lib/commands/runtime-json/activate/command.js +16 -0
  29. package/src/lib/commands/runtime-json/activate/command.js.map +1 -0
  30. package/src/lib/commands/{runtime → runtime-json}/activate/loader/command.js +1 -1
  31. package/src/lib/commands/runtime-json/activate/loader/command.js.map +1 -0
  32. package/src/lib/commands/runtime-json/activate/runtime/command.d.ts +2 -0
  33. package/src/lib/commands/{runtime/activate/context → runtime-json/activate/runtime}/command.js +13 -13
  34. package/src/lib/commands/runtime-json/activate/runtime/command.js.map +1 -0
  35. package/src/lib/commands/{runtime → runtime-json}/activate/update-element-runtime-version.d.ts +4 -4
  36. package/src/lib/commands/{runtime → runtime-json}/activate/update-element-runtime-version.js +14 -12
  37. package/src/lib/commands/runtime-json/activate/update-element-runtime-version.js.map +1 -0
  38. package/src/lib/commands/{runtime → runtime-json}/activate/workspace/command.js +1 -1
  39. package/src/lib/commands/runtime-json/activate/workspace/command.js.map +1 -0
  40. package/src/lib/commands/runtime-json/command.d.ts +2 -0
  41. package/src/lib/commands/runtime-json/command.js +15 -0
  42. package/src/lib/commands/runtime-json/command.js.map +1 -0
  43. package/src/lib/commands/runtime-json/replace-command.d.ts +2 -0
  44. package/src/lib/commands/{runtime/replace-json-command.js → runtime-json/replace-command.js} +5 -5
  45. package/src/lib/commands/runtime-json/replace-command.js.map +1 -0
  46. package/src/lib/commands/{runtime → runtime-json}/unisphere-runtime-json-v1.d.ts +2 -2
  47. package/src/lib/commands/runtime-json/unisphere-runtime-json-v1.js.map +1 -0
  48. package/src/lib/commands/{runtime → runtime-json}/unisphere-runtime-json-v2.d.ts +11 -9
  49. package/src/lib/commands/{runtime → runtime-json}/unisphere-runtime-json-v2.js +26 -28
  50. package/src/lib/commands/runtime-json/unisphere-runtime-json-v2.js.map +1 -0
  51. package/src/lib/commands/runtime-json/verify-env-readiness.js.map +1 -0
  52. package/src/lib/unisphere.js +4 -4
  53. package/src/lib/unisphere.js.map +1 -1
  54. package/src/lib/utils/unisphere/augment-workspace-config.js +6 -6
  55. package/src/lib/utils/unisphere/build-unisphere-elements.d.ts +3 -3
  56. package/src/lib/utils/unisphere/build-unisphere-elements.js +5 -5
  57. package/src/lib/utils/unisphere/reset-env.js +3 -3
  58. package/src/lib/utils/unisphere/types.d.ts +11 -11
  59. package/src/lib/utils/unisphere/types.js +2 -2
  60. package/src/lib/utils/unisphere-utils.d.ts +1 -1
  61. package/src/lib/utils/unisphere-utils.js +4 -4
  62. package/src/lib/utils/unisphere-utils.js.map +1 -1
  63. package/src/lib/utils/utils.d.ts +1 -1
  64. package/src/lib/utils/utils.js +3 -3
  65. package/src/lib/commands/context/context-commands.d.ts +0 -2
  66. package/src/lib/commands/context/context-commands.js +0 -17
  67. package/src/lib/commands/context/context-commands.js.map +0 -1
  68. package/src/lib/commands/context/publish/types.js.map +0 -1
  69. package/src/lib/commands/runtime/activate/check-element-runtime-availability.js.map +0 -1
  70. package/src/lib/commands/runtime/activate/command.js +0 -16
  71. package/src/lib/commands/runtime/activate/command.js.map +0 -1
  72. package/src/lib/commands/runtime/activate/context/command.d.ts +0 -2
  73. package/src/lib/commands/runtime/activate/context/command.js.map +0 -1
  74. package/src/lib/commands/runtime/activate/loader/command.js.map +0 -1
  75. package/src/lib/commands/runtime/activate/update-element-runtime-version.js.map +0 -1
  76. package/src/lib/commands/runtime/activate/workspace/command.js.map +0 -1
  77. package/src/lib/commands/runtime/migrate/command.d.ts +0 -0
  78. package/src/lib/commands/runtime/migrate/command.js +0 -49
  79. package/src/lib/commands/runtime/migrate/command.js.map +0 -1
  80. package/src/lib/commands/runtime/replace-json-command.d.ts +0 -2
  81. package/src/lib/commands/runtime/replace-json-command.js.map +0 -1
  82. package/src/lib/commands/runtime/runtime-commands.js +0 -15
  83. package/src/lib/commands/runtime/runtime-commands.js.map +0 -1
  84. package/src/lib/commands/runtime/unisphere-runtime-json-v1.js.map +0 -1
  85. package/src/lib/commands/runtime/unisphere-runtime-json-v2.js.map +0 -1
  86. package/src/lib/commands/runtime/verify-env-readiness.js.map +0 -1
  87. /package/src/lib/commands/{context → runtime}/build-command.d.ts +0 -0
  88. /package/src/lib/commands/runtime/{runtime-commands.d.ts → command.d.ts} +0 -0
  89. /package/src/lib/commands/{context → runtime}/publish/command.d.ts +0 -0
  90. /package/src/lib/commands/{context → runtime}/publish/execute/execute.d.ts +0 -0
  91. /package/src/lib/commands/{context → runtime}/publish/execute/sync-element.d.ts +0 -0
  92. /package/src/lib/commands/{context → runtime}/publish/execute/sync-element.js +0 -0
  93. /package/src/lib/commands/{context → runtime}/publish/prepare/prepare.d.ts +0 -0
  94. /package/src/lib/commands/{context → runtime}/publish/types.d.ts +0 -0
  95. /package/src/lib/commands/{context → runtime}/publish/types.js +0 -0
  96. /package/src/lib/commands/{context → runtime}/serve-command.d.ts +0 -0
  97. /package/src/lib/commands/{runtime → runtime-json}/activate/command.d.ts +0 -0
  98. /package/src/lib/commands/{runtime → runtime-json}/activate/loader/command.d.ts +0 -0
  99. /package/src/lib/commands/{runtime → runtime-json}/activate/workspace/command.d.ts +0 -0
  100. /package/src/lib/commands/{runtime → runtime-json}/unisphere-runtime-json-v1.js +0 -0
  101. /package/src/lib/commands/{runtime → runtime-json}/verify-env-readiness.d.ts +0 -0
  102. /package/src/lib/commands/{runtime → runtime-json}/verify-env-readiness.js +0 -0
@@ -12,14 +12,14 @@ const { envVariables, isUnisphereEnvironment } = getEnvVariables();
12
12
 
13
13
  if (!isUnisphereEnvironment) {
14
14
  console.warn(
15
- 'WARNING: Building or linting unisphere elements from outside the unisphere cli will not handle contexts.'
15
+ 'WARNING: Building or linting unisphere elements from outside the unisphere cli will not handle runtimes.'
16
16
  );
17
17
  }
18
18
 
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
- const isDeployingContext = envVariables.UNISPHERE_MODE === 'context';
22
- console.log(`Building the package in '${isDeployingContext ? 'context' : 'package'}' mode`);
21
+ const isDeployingRuntime = envVariables.UNISPHERE_MODE === 'runtime';
22
+ console.log(`Building the package in '${isDeployingRuntime ? 'runtime' : 'package'}' mode`);
23
23
 
24
24
  const withUnisphere = (config) => {
25
25
  console.log('[unisphere] removing unisphere config used to monkey patch @nw/rollup');
@@ -35,7 +35,7 @@ const withUnisphere = (config) => {
35
35
  }
36
36
 
37
37
  const externalFn = config.external;
38
- if (isDeployingContext) {
38
+ if (isDeployingRuntime) {
39
39
  config.external = (id, parent) => {
40
40
  if (id.includes(`node_modules`)) {
41
41
  return true;
@@ -16,10 +16,10 @@ const { envVariables, isUnisphereEnvironment } = getEnvVariables();
16
16
 
17
17
  if (!isUnisphereEnvironment) {
18
18
  console.warn(
19
- 'WARNING: Building or linting unisphere elements from outside the unisphere cli will not handle contexts.'
19
+ 'WARNING: Building or linting unisphere elements from outside the unisphere cli will not handle runtimes.'
20
20
  );
21
21
  }
22
- const isDeployingContext = envVariables.UNISPHERE_MODE === 'context';
22
+ const isDeployingRuntime = envVariables.UNISPHERE_MODE === 'runtime';
23
23
 
24
24
  const isProduction = envVariables.UNISPHERE_ENV === 'production';
25
25
 
@@ -30,7 +30,7 @@ const getUnisphereTSInterceptorsConfig = (unispherePackagesDistList) => {
30
30
  return {
31
31
  interceptors: {
32
32
  compilerOptions : (options) => {
33
- // Monkey patch TS paths for shared libraries to be consumed by contexts from dist like other dependencies
33
+ // Monkey patch TS paths for shared libraries to be consumed by runtimes from dist like other dependencies
34
34
  const projectPackages = unispherePackagesDistList.reduce((acc, item) => {
35
35
  acc[item.packageName] = [item.distPath];
36
36
  return acc;
@@ -81,7 +81,7 @@ const getWithNx = (unisphereConfig) => {
81
81
  ]
82
82
  }
83
83
 
84
- if (isDeployingContext) {
84
+ if (isDeployingRuntime) {
85
85
  const unispherePackagesDistList = getUnispherePackagesDistList(unisphereConfig.workspaceConfiguration.cwd);
86
86
 
87
87
  secondArgument.unisphere = getUnisphereTSInterceptorsConfig(unispherePackagesDistList);
@@ -185,10 +185,10 @@ module.exports = (unisphereConfig) => {
185
185
  const projectJson = JSON.parse(fs.readFileSync(projectJsonPath, 'utf8'));
186
186
  const sourcePath = projectJson.sourceRoot.replace(/\/src$/, '').split('/');
187
187
 
188
- const expectedType = (unisphereConfig.allowedType || 'contexts');
188
+ const expectedType = (unisphereConfig.allowedType || 'runtimes');
189
189
  const pathCheck = unisphereConfig.bypassPathHierarchyCheck ? true : (sourcePath.length === 3);
190
190
  if (!pathCheck || sourcePath[0] !== 'unisphere' || sourcePath[1] !== expectedType) {
191
- throw new Error(`sourcePath must follow pattern unisphere/${expectedType}/<context-name>, got ${sourcePath.join('/')}`)
191
+ throw new Error(`sourcePath must follow pattern unisphere/${expectedType}/<runtime-name>, got ${sourcePath.join('/')}`)
192
192
  }
193
193
 
194
194
  // todo can improve code readability by moving the calculation of the 'outputPath' here instead of in getWithNx
package/package.json CHANGED
@@ -1,12 +1,10 @@
1
1
  {
2
2
  "name": "@unisphere/cli",
3
- "version": "1.21.1",
3
+ "version": "1.22.0",
4
4
  "bin": {
5
5
  "unisphere": "./src/index.js"
6
6
  },
7
- "scripts": {
8
- "postinstall": "node ./src/index.js reset --verbose --cwd=\"${INIT_CWD:-%INIT_CWD%}\" --only-rollup > reset.log 2>&1"
9
- },
7
+ "scripts": {},
10
8
  "private": false,
11
9
  "publishConfig": {
12
10
  "access": "public"
@@ -38,9 +36,9 @@
38
36
  "listr2": "8.2.5",
39
37
  "colorette": "2.0.20",
40
38
  "cli-table3": "0.6.5",
41
- "fs-extra": "10.1.0",
42
- "execa": "5.1.1",
43
39
  "@octokit/rest": "19.0.5",
40
+ "execa": "5.1.1",
41
+ "fs-extra": "10.1.0",
44
42
  "@aws-sdk/client-s3": "3.216.0",
45
43
  "@aws-sdk/client-sts": "3.216.0",
46
44
  "sisteransi": "1.0.5",
@@ -61,7 +61,7 @@ const createCheckCommand = () => {
61
61
  tasks.add({
62
62
  title: `Checking workspace`,
63
63
  task: (ctx, task) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
64
- return (0, build_unisphere_elements_1.createListrForBuildingUnisphereContext)({
64
+ return (0, build_unisphere_elements_1.createListrForBuildingUnisphereRuntime)({
65
65
  cwd,
66
66
  nxProjectName: ctx.workspace.config.elements.workspace.nxProjectName,
67
67
  parentTask: task,
@@ -73,7 +73,7 @@ const createCheckCommand = () => {
73
73
  // type: 'workspace',
74
74
  // name: 'workspace',
75
75
  // command:
76
- // 'npx unisphere context build workspace --verbose',
76
+ // 'npx unisphere runtime build workspace --verbose',
77
77
  // status: false,
78
78
  // },
79
79
  // },
@@ -82,7 +82,7 @@ const createCheckCommand = () => {
82
82
  task: () => {
83
83
  ctx.report.workspace = {
84
84
  name: 'workspace',
85
- command: 'npx unisphere context build workspace --verbose',
85
+ command: 'npx unisphere runtime build workspace --verbose',
86
86
  status: true,
87
87
  operation: 'lint & build',
88
88
  };
@@ -96,7 +96,7 @@ const createCheckCommand = () => {
96
96
  tasks.add({
97
97
  title: `Checking loader`,
98
98
  task: (ctx, task) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
99
- return (0, build_unisphere_elements_1.createListrForBuildingUnisphereContext)({
99
+ return (0, build_unisphere_elements_1.createListrForBuildingUnisphereRuntime)({
100
100
  cwd,
101
101
  nxProjectName: ctx.workspace.config.elements.loader.nxProjectName,
102
102
  parentTask: task,
@@ -108,7 +108,7 @@ const createCheckCommand = () => {
108
108
  // type: 'loader',
109
109
  // name: 'loader',
110
110
  // command:
111
- // 'npx unisphere context build loader --verbose',
111
+ // 'npx unisphere runtime build loader --verbose',
112
112
  // status: false,
113
113
  // },
114
114
  // },
@@ -117,7 +117,7 @@ const createCheckCommand = () => {
117
117
  task: () => {
118
118
  ctx.report.loader = {
119
119
  name: 'loader',
120
- command: 'npx unisphere context build loader --verbose',
120
+ command: 'npx unisphere runtime build loader --verbose',
121
121
  status: true,
122
122
  operation: 'lint & build',
123
123
  };
@@ -182,9 +182,9 @@ const createCheckCommand = () => {
182
182
  },
183
183
  },
184
184
  {
185
- title: `Checking contexts elements readiness`,
185
+ title: `Checking runtimes elements readiness`,
186
186
  skip: (ctx) => {
187
- return (Object.keys(ctx.workspace.config.elements.contexts || {})
187
+ return (Object.keys(ctx.workspace.config.elements.runtimes || {})
188
188
  .length === 0);
189
189
  },
190
190
  task: (ctx, task) => {
@@ -192,32 +192,32 @@ const createCheckCommand = () => {
192
192
  concurrent: false,
193
193
  exitOnError: false,
194
194
  });
195
- if (ctx.workspace.config.elements.contexts) {
196
- for (const [contextName, contextConfig] of Object.entries(ctx.workspace.config.elements.contexts)) {
195
+ if (ctx.workspace.config.elements.runtimes) {
196
+ for (const [runtimeName, runtimeConfig] of Object.entries(ctx.workspace.config.elements.runtimes)) {
197
197
  tasks.add({
198
- title: `Checking context '${contextName}'`,
198
+ title: `Checking runtime '${runtimeName}'`,
199
199
  task: (ctx, task) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
200
- return (0, build_unisphere_elements_1.createListrForBuildingUnisphereContext)({
200
+ return (0, build_unisphere_elements_1.createListrForBuildingUnisphereRuntime)({
201
201
  cwd,
202
- nxProjectName: contextConfig.nxProjectName,
202
+ nxProjectName: runtimeConfig.nxProjectName,
203
203
  parentTask: task,
204
204
  production: options.production,
205
205
  lint: false,
206
206
  verbose: options.verbose,
207
207
  // ctx: {
208
208
  // failure: {
209
- // type: 'context',
210
- // name: contextName,
211
- // command: `npx unisphere context build ${contextName} --verbose`,
209
+ // type: 'runtime',
210
+ // name: runtimeName,
211
+ // command: `npx unisphere runtime build ${runtimeName} --verbose`,
212
212
  // status: false,
213
213
  // },
214
214
  // },
215
215
  postTask: {
216
216
  title: 'Reporting success',
217
217
  task: () => {
218
- ctx.report.contexts.push({
219
- name: contextName,
220
- command: `npx unisphere context build ${contextName} --verbose`,
218
+ ctx.report.runtimes.push({
219
+ name: runtimeName,
220
+ command: `npx unisphere runtime build ${runtimeName} --verbose`,
221
221
  status: true,
222
222
  operation: 'lint & build',
223
223
  });
@@ -245,7 +245,7 @@ const createCheckCommand = () => {
245
245
  .split(' ');
246
246
  const operation = error.path[2].replace(/^Running (.*?)$/, '$1');
247
247
  const resolveElementType = ['workspace', 'loader'].includes(elementType || '')
248
- ? 'context'
248
+ ? 'runtime'
249
249
  : elementType;
250
250
  const failure = {
251
251
  name: elementName || error.path[1],
@@ -265,8 +265,8 @@ const createCheckCommand = () => {
265
265
  case 'loader':
266
266
  ctx.report.loader = failure;
267
267
  break;
268
- case 'context':
269
- ctx.report.contexts.push(failure);
268
+ case 'runtime':
269
+ ctx.report.runtimes.push(failure);
270
270
  break;
271
271
  case 'package':
272
272
  ctx.report.packages.push(failure);
@@ -339,19 +339,19 @@ const createCheckCommand = () => {
339
339
  ]);
340
340
  }
341
341
  }
342
- if (ctx.report.contexts.length > 0) {
342
+ if (ctx.report.runtimes.length > 0) {
343
343
  table.push([
344
344
  {
345
345
  hAlign: 'center',
346
346
  colSpan: 4,
347
- content: (0, colorette_1.bold)((0, colorette_1.green)('Contexts')),
347
+ content: (0, colorette_1.bold)((0, colorette_1.green)('Runtimes')),
348
348
  },
349
349
  ]);
350
350
  for (const { operation, name, command, status } of ctx.report
351
- .contexts) {
351
+ .runtimes) {
352
352
  table.push([
353
353
  (0, colorette_1.bold)(name),
354
- 'Context',
354
+ 'Runtime',
355
355
  status
356
356
  ? (0, colorette_1.green)('OK')
357
357
  : (0, colorette_1.red)(`${operation.toUpperCase()} FAILED`),
@@ -396,7 +396,7 @@ const createCheckCommand = () => {
396
396
  workspace: null,
397
397
  loader: null,
398
398
  packages: [],
399
- contexts: [],
399
+ runtimes: [],
400
400
  unknown: [],
401
401
  },
402
402
  workspace: null,
@@ -105,7 +105,7 @@ in the target project directory and then choose the desired package command`),
105
105
  table.push([
106
106
  (0, colorette_1.bold)('Build'),
107
107
  'Build the workspace',
108
- 'npx unisphere context build workspace',
108
+ 'npx unisphere runtime build workspace',
109
109
  ]);
110
110
  table.push([
111
111
  (0, colorette_1.bold)('Lint'),
@@ -115,12 +115,12 @@ in the target project directory and then choose the desired package command`),
115
115
  table.push([
116
116
  (0, colorette_1.bold)('Serve'),
117
117
  'Serve the workspace',
118
- 'npx unisphere context serve workspace',
118
+ 'npx unisphere runtime serve workspace',
119
119
  ]);
120
120
  table.push([
121
121
  (0, colorette_1.bold)('Serve (custom port)'),
122
122
  'Serve the workspace with a specific port (e.g. 8080)',
123
- 'npx unisphere context serve workspace --port 8080',
123
+ 'npx unisphere runtime serve workspace --port 8080',
124
124
  ]);
125
125
  }
126
126
  if (ctx.workspace.config.elements.loader) {
@@ -134,7 +134,7 @@ in the target project directory and then choose the desired package command`),
134
134
  table.push([
135
135
  (0, colorette_1.bold)('Build'),
136
136
  'Build the loader',
137
- 'npx unisphere context build loader',
137
+ 'npx unisphere runtime build loader',
138
138
  ]);
139
139
  table.push([
140
140
  (0, colorette_1.bold)('Lint'),
@@ -144,12 +144,12 @@ in the target project directory and then choose the desired package command`),
144
144
  table.push([
145
145
  (0, colorette_1.bold)('Serve'),
146
146
  'Serve the loader',
147
- 'npx unisphere context serve loader',
147
+ 'npx unisphere runtime serve loader',
148
148
  ]);
149
149
  table.push([
150
150
  (0, colorette_1.bold)('Serve with port'),
151
151
  'Serve the loader with a specific port',
152
- 'npx unisphere context serve loader --port 8080',
152
+ 'npx unisphere runtime serve loader --port 8080',
153
153
  ]);
154
154
  }
155
155
  if (Object.keys(ctx.workspace.config.elements.packages || {})
@@ -175,30 +175,30 @@ in the target project directory and then choose the desired package command`),
175
175
  ]);
176
176
  }
177
177
  }
178
- if (Object.keys(ctx.workspace.config.elements.contexts || {})
178
+ if (Object.keys(ctx.workspace.config.elements.runtimes || {})
179
179
  .length > 0) {
180
- for (const [name, { distributionChannel, version },] of Object.entries(ctx.workspace.config.elements.contexts)) {
180
+ for (const [name, { distributionChannel, version },] of Object.entries(ctx.workspace.config.elements.runtimes)) {
181
181
  table.push([
182
182
  {
183
183
  colSpan: 3,
184
184
  hAlign: 'center',
185
- content: (0, colorette_1.bold)((0, colorette_1.green)(`Context ${name} Commands`)),
185
+ content: (0, colorette_1.bold)((0, colorette_1.green)(`Runtime ${name} Commands`)),
186
186
  },
187
187
  ]);
188
188
  table.push([
189
189
  (0, colorette_1.bold)('Build'),
190
- 'Build the context',
191
- `npx unisphere context build ${name}`,
190
+ 'Build the runtime',
191
+ `npx unisphere runtime build ${name}`,
192
192
  ]);
193
193
  table.push([
194
194
  (0, colorette_1.bold)('Serve'),
195
- 'Serve the context (default port is 8300)',
196
- `npx unisphere context serve ${name}`,
195
+ 'Serve the runtime (default port is 8300)',
196
+ `npx unisphere runtime serve ${name}`,
197
197
  ]);
198
198
  table.push([
199
199
  (0, colorette_1.bold)('Serve (custom port)'),
200
- 'Serve the context with a specific port (e.g. 8320)',
201
- `npx unisphere context serve ${name} --port 8320`,
200
+ 'Serve the runtime with a specific port (e.g. 8320)',
201
+ `npx unisphere runtime serve ${name} --port 8320`,
202
202
  ]);
203
203
  }
204
204
  }
@@ -56,7 +56,7 @@ const createInfoCommand = () => {
56
56
  const { distributionChannel, version } = ctx.workspace.config.elements.workspace;
57
57
  table.push([
58
58
  (0, colorette_1.bold)('workspace'),
59
- 'Context',
59
+ 'Runtime',
60
60
  distributionChannel,
61
61
  version,
62
62
  ]);
@@ -65,7 +65,7 @@ const createInfoCommand = () => {
65
65
  const { distributionChannel, version } = ctx.workspace.config.elements.loader;
66
66
  table.push([
67
67
  (0, colorette_1.bold)('loader'),
68
- 'Context',
68
+ 'Runtime',
69
69
  distributionChannel,
70
70
  version,
71
71
  ]);
@@ -89,13 +89,13 @@ const createInfoCommand = () => {
89
89
  ]);
90
90
  }
91
91
  }
92
- if (Object.keys(ctx.workspace.config.elements.contexts || {})
92
+ if (Object.keys(ctx.workspace.config.elements.runtimes || {})
93
93
  .length > 0) {
94
- table.push([{ colSpan: 4, content: (0, colorette_1.bold)((0, colorette_1.green)('Contexts')) }]);
95
- for (const [name, { distributionChannel, version },] of Object.entries(ctx.workspace.config.elements.contexts)) {
94
+ table.push([{ colSpan: 4, content: (0, colorette_1.bold)((0, colorette_1.green)('Runtimes')) }]);
95
+ for (const [name, { distributionChannel, version },] of Object.entries(ctx.workspace.config.elements.runtimes)) {
96
96
  table.push([
97
97
  (0, colorette_1.bold)(name),
98
- 'Context',
98
+ 'Runtime',
99
99
  distributionChannel,
100
100
  version,
101
101
  ]);
@@ -97,7 +97,7 @@ const publish = (options) => tslib_1.__awaiter(void 0, void 0, void 0, function*
97
97
  {
98
98
  title: 'Build package',
99
99
  skip: (ctx) => ctx.shouldSkip,
100
- task: (context, task) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
100
+ task: (runtime, task) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
101
101
  return (0, build_unisphere_elements_1.createListrForBuildingUnispherePackage)({
102
102
  cwd: unisphereWorkspace.repository.repositoryRootPath,
103
103
  nxProjectName: packageConfig.nxProjectName,
@@ -9,21 +9,21 @@ const utils_1 = require("../../utils/utils");
9
9
  const workspace_1 = require("../../utils/unisphere/workspace");
10
10
  const build_unisphere_elements_1 = require("../../utils/unisphere/build-unisphere-elements");
11
11
  const defaults_1 = require("../../utils/listr2/defaults");
12
- const debug = (0, debug_1.default)('unisphere:context:build');
12
+ const debug = (0, debug_1.default)('unisphere:runtime:build');
13
13
  const createBuildCommand = (parentCommand) => {
14
14
  const command = parentCommand.command('build');
15
15
  const noLintOption = new commander_1.Option('--no-lint', 'skip linting');
16
16
  noLintOption.defaultValue = false;
17
17
  noLintOption.hidden = true;
18
18
  command
19
- .description('build a unisphere context element')
19
+ .description('build a unisphere runtime element')
20
20
  .option('--verbose', 'output debug logs', false)
21
- .addArgument(new commander_1.Argument('context', 'the context to build'))
21
+ .addArgument(new commander_1.Argument('runtime', 'the runtime to build'))
22
22
  .option('--cwd <name>', 'the working directory')
23
23
  .option('--production', 'build in production mode', false)
24
24
  .addOption(noLintOption)
25
25
  .hook('preAction', utils_1.printVerboseHook)
26
- .action((context, options) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
26
+ .action((runtime, options) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
27
27
  const cwd = options.cwd || process.cwd();
28
28
  const task = new listr2_1.Listr([
29
29
  {
@@ -40,20 +40,20 @@ const createBuildCommand = (parentCommand) => {
40
40
  }),
41
41
  },
42
42
  {
43
- title: `Building context ${context}`,
43
+ title: `Building runtime ${runtime}`,
44
44
  task: (ctx, task) => {
45
45
  var _a, _b;
46
- const contextNxProjectName = context === 'loader'
46
+ const runtimeNxProjectName = runtime === 'loader'
47
47
  ? ctx.workspace.config.elements.loader.nxProjectName
48
- : context === 'workspace'
48
+ : runtime === 'workspace'
49
49
  ? ctx.workspace.config.elements.workspace.nxProjectName
50
- : (_a = ctx.workspace.config.elements.contexts[context]) === null || _a === void 0 ? void 0 : _a.nxProjectName;
51
- if (!contextNxProjectName) {
52
- throw new Error(`No nx project name found for context ${context}`);
50
+ : (_a = ctx.workspace.config.elements.runtimes[runtime]) === null || _a === void 0 ? void 0 : _a.nxProjectName;
51
+ if (!runtimeNxProjectName) {
52
+ throw new Error(`No nx project name found for runtime ${runtime}`);
53
53
  }
54
- return (0, build_unisphere_elements_1.createListrForBuildingUnisphereContext)({
54
+ return (0, build_unisphere_elements_1.createListrForBuildingUnisphereRuntime)({
55
55
  cwd,
56
- nxProjectName: contextNxProjectName,
56
+ nxProjectName: runtimeNxProjectName,
57
57
  parentTask: task,
58
58
  production: options.production,
59
59
  lint: (_b = options.lint) !== null && _b !== void 0 ? _b : true,
@@ -1 +1 @@
1
- {"version":3,"file":"build-command.js","sourceRoot":"","sources":["../../../../../../../packages/unisphere-cli/src/lib/commands/context/build-command.ts"],"names":[],"mappings":";;;;AAAA,yCAAsD;AACtD,iCAA0B;AAC1B,mCAA+B;AAE/B,6CAAqD;AACrD,+DAAwE;AACxE,6FAAwG;AACxG,0DAAqE;AAGrE,MAAM,KAAK,GAAG,IAAA,eAAK,EAAC,yBAAyB,CAAC,CAAC;AAExC,MAAM,kBAAkB,GAAG,CAAC,aAAsB,EAAW,EAAE;IACpE,MAA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E,EAAE;;oBAClB,MAAM,oBAAoB,GACxB,OAAO,KAAK,QAAQ;wBAClB,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,aAAa;wBACpD,CAAC,CAAC,OAAO,KAAK,WAAW;4BACzB,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,aAAa;4BACvD,CAAC,CAAC,MAAA,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,0CAC3C,aAAa,CAAC;oBAExB,IAAI,CAAC,oBAAoB,EAAE;wBACzB,MAAM,IAAI,KAAK,CACb,wCAAwC,OAAO,EAAE,CAClD,CAAC;qBACH;oBAED,OAAO,IAAA,iEAAsC,EAAC;wBAC5C,GAAG;wBACH,aAAa,EAAE,oBAAoB;wBACnC,UAAU,EAAE,IAAI;wBAChB,UAAU,EAAE,OAAO,CAAC,UAAU;wBAC9B,IAAI,EAAE,MAAA,OAAO,CAAC,IAAI,mCAAI,IAAI;wBAC1B,OAAO,EAAE,OAAO,CAAC,OAAO;qBACzB,CAAC,CAAC;gBACL,CAAC;aACF;SACF,EACD,IAAA,iCAAsB,GAAE,CACzB,CAAC;QAEF,MAAM,IAAI,CAAC,GAAG,EAAE,CAAC;IACnB,CAAC,CAAA,CAAC,CAAC;IAEL,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAtEW,QAAA,kBAAkB,sBAsE7B"}
1
+ {"version":3,"file":"build-command.js","sourceRoot":"","sources":["../../../../../../../packages/unisphere-cli/src/lib/commands/runtime/build-command.ts"],"names":[],"mappings":";;;;AAAA,yCAAsD;AACtD,iCAA0B;AAC1B,mCAA+B;AAE/B,6CAAqD;AACrD,+DAAwE;AACxE,6FAAwG;AACxG,0DAAqE;AAGrE,MAAM,KAAK,GAAG,IAAA,eAAK,EAAC,yBAAyB,CAAC,CAAC;AAExC,MAAM,kB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gBACpC,IAAI,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;;oBAClB,MAAM,oBAAoB,GACxB,OAAO,KAAK,QAAQ;wBAClB,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,aAAa;wBACpD,CAAC,CAAC,OAAO,KAAK,WAAW;4BACzB,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,aAAa;4BACvD,CAAC,CAAC,MAAA,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,0CAC3C,aAAa,CAAC;oBAExB,IAAI,CAAC,oBAAoB,EAAE;wBACzB,MAAM,IAAI,KAAK,CACb,wCAAwC,OAAO,EAAE,CAClD,CAAC;qBACH;oBAED,OAAO,IAAA,iEAAsC,EAAC;wBAC5C,GAAG;wBACH,aAAa,EAAE,oBAAoB;wBACnC,UAAU,EAAE,IAAI;wBAChB,UAAU,EAAE,OAAO,CAAC,UAAU;wBAC9B,IAAI,EAAE,MAAA,OAAO,CAAC,IAAI,mCAAI,IAAI;wBAC1B,OAAO,EAAE,OAAO,CAAC,OAAO;qBACzB,CAAC,CAAC;gBACL,CAAC;aACF;SACF,EACD,IAAA,iCAAsB,GAAE,CACzB,CAAC;QAEF,MAAM,IAAI,CAAC,GAAG,EAAE,CAAC;IACnB,CAAC,CAAA,CAAC,CAAC;IAEL,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAtEW,QAAA,kBAAkB,sBAsE7B"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createRuntimeCommand = void 0;
4
+ const commander_1 = require("commander");
5
+ const command_1 = require("./publish/command");
6
+ const build_command_1 = require("./build-command");
7
+ const serve_command_1 = require("./serve-command");
8
+ const createRuntimeCommand = () => {
9
+ const runtimeCommand = new commander_1.Command('runtime');
10
+ runtimeCommand.description('manage Unisphere runtime in the current project');
11
+ (0, build_command_1.createBuildCommand)(runtimeCommand);
12
+ (0, command_1.createPublishCommand)(runtimeCommand);
13
+ (0, serve_command_1.createServeCommand)(runtimeCommand);
14
+ return runtimeCommand;
15
+ };
16
+ exports.createRuntimeCommand = createRuntimeCommand;
17
+ //# sourceMappingURL=command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command.js","sourceRoot":"","sources":["../../../../../../../packages/unisphere-cli/src/lib/commands/runtime/command.ts"],"names":[],"mappings":";;;AAAA,yCAAoC;AACpC,+CAAyD;AACzD,mDAAqD;AACrD,mDAAqD;AAE9C,MAAM,oBAAoB,GAAG,GAAY,EAAE;IAChD,MAAM,cAAc,GAAG,IAAI,mBAAO,CAAC,SAAS,CAAC,CAAC;IAC9C,cAAc,CAAC,WAAW,CAAC,iDAAiD,CAAC,CAAC;IAE9E,IAAA,kCAAkB,EAAC,cAAc,CAAC,CAAC;IACnC,IAAA,8BAAoB,EAAC,cAAc,CAAC,CAAC;IACrC,IAAA,kCAAkB,EAAC,cAAc,CAAC,CAAC;IACnC,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC;AARW,QAAA,oBAAoB,wBAQ/B"}
@@ -12,10 +12,10 @@ const execute_1 = require("./execute/execute");
12
12
  const artifacts_1 = require("../../../utils/artifacts");
13
13
  const get_env_variables_1 = require("../../../utils/unisphere/get-env-variables");
14
14
  const { envVariables } = (0, get_env_variables_1.getEnvVariables)();
15
- const debug = (0, debug_1.default)('unisphere:context:publish');
15
+ const debug = (0, debug_1.default)('unisphere:runtime:publish');
16
16
  const createPublishCommand = (parentCommand) => {
17
17
  const publishCommand = parentCommand.command('publish');
18
- publishCommand.description('publish all Unisphere contexts of the current project');
18
+ publishCommand.description('publish all Unisphere runtimes of the current project');
19
19
  const prepareCommand = publishCommand.command('prepare');
20
20
  const executeCommand = publishCommand.command('execute');
21
21
  const tagsCheckOption = new commander_1.Option('--no-tags-check', 'bypass github tags checks');
@@ -30,7 +30,7 @@ const createPublishCommand = (parentCommand) => {
30
30
  const cacheKeyOption = new commander_1.Option('--cache-key <name>', 'the cache key');
31
31
  cacheKeyOption.hidden = true;
32
32
  prepareCommand
33
- .description('prepare all Unisphere contexts of the current project for upload')
33
+ .description('prepare all Unisphere runtimes of the current project for upload')
34
34
  .option('--verbose', 'output debug logs', false)
35
35
  .option('--cwd <name>', 'the working directory')
36
36
  .addOption(tagsCheckOption)
@@ -59,12 +59,12 @@ const createPublishCommand = (parentCommand) => {
59
59
  debug(`prepare done`);
60
60
  }));
61
61
  executeCommand
62
- .description('Upload all Unisphere contexts of the current project')
62
+ .description('Upload all Unisphere runtimes of the current project')
63
63
  .option('--verbose', 'output debug logs', false)
64
64
  .requiredOption('--env <id>', 'the environment to deploy to')
65
65
  .requiredOption('--aws-region <value>', 'The AWS region')
66
66
  .option('--cwd <name>', 'the working directory')
67
- .requiredOption('--artifacts-folder <name>', 'the artifacts folder of this project (provided by `deploy contexts prepare` command)')
67
+ .requiredOption('--artifacts-folder <name>', 'the artifacts folder of this project (provided by `deploy runtimes prepare` command)')
68
68
  .option('--dry-run', 'run the deployment in dry-run mode', false)
69
69
  .option('--aws-arn <name>', 'the aws ARN to assume')
70
70
  .addOption(tagsCheckOption)
@@ -1 +1 @@
1
- {"version":3,"file":"command.js","sourceRoot":"","sources":["../../../../../../../../packages/unisphere-cli/src/lib/commands/context/publish/command.ts"],"names":[],"mappings":";;;;AAAA,yCAA4C;AAC5C,gDAAwD;AACxD,+CAA4C;AAC5C,+BAA+B;AAC/B,mCAAmC;AACnC,iCAA0B;AAC1B,+CAA4C;AAC5C,wDAAiE;AACjE,kFAA6E;AAE7E,MAAM,EAAE,YAAY,EAAE,GAAG,IAAA,mCAAe,GAAE,CAAC;AAC3C,MAAM,KAAK,GAAG,IAAA,eAAK,EAAC,2BAA2B,CAAC,CAAC;AAE1C,MAAM,oBAAoB,GAAG,CAAC,aAAsB,EAAW,EAAE;IACtE,MAAM,c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IAAI,CAAC,OAAO,CAAC,eAAe,EAAE;YAC5B,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;SAC/D;QACD,MAAM,IAAA,iBAAO,kCACR,OAAO,KACV,GAAG,EAAE,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,IACjC,CAAC;QACH,KAAK,CAAC,WAAW,CAAC,CAAC;IACrB,CAAC,CAAA,CAAC,CAAC;IAEL,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC;AA3FW,QAAA,oBAAoB,wBA2F/B"}
1
+ {"version":3,"file":"command.js","sourceRoot":"","sources":["../../../../../../../../packages/unisphere-cli/src/lib/commands/runtime/publish/command.ts"],"names":[],"mappings":";;;;AAAA,yCAA4C;AAC5C,gDAAwD;AACxD,+CAA4C;AAC5C,+BAA+B;AAC/B,mCAAmC;AACnC,iCAA0B;AAC1B,+CAA4C;AAC5C,wDAAiE;AACjE,kFAA6E;AAE7E,MAAM,EAAE,YAAY,EAAE,GAAG,IAAA,mCAAe,GAAE,CAAC;AAC3C,MAAM,KAAK,GAAG,IAAA,eAAK,EAAC,2BAA2B,CAAC,CAAC;AAE1C,MAAM,oBAAoB,GAAG,CAAC,aAAsB,EAAW,EAAE;IACtE,MAAM,cAAc,GAAG,aAAa,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAExD,cAAc,CAAC,WAAW,CACxB,uDAAuD,CACxD,CAAC;IACF,MAAM,cAAc,GAAG,cAAc,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,cAAc,GAAG,cAAc,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAEzD,MAAM,eAAe,GAAG,IAAI,kBAAM,CAChC,iBAAiB,EACjB,2BAA2B,CAC5B,CAAC;IACF,eAAe,CAAC,YAAY,GAAG,IAAI,CAAC;IACpC,eAAe,CAAC,MAAM,GAAG,IAAI,CAAC;IAE9B,MAAM,UAAU,GAAG,IAAI,kBAAM,CAAC,SAAS,EAA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AChE;SACF;aAAM;YACL,KAAK,CAAC,2CAA2C,CAAC,CAAC;SACpD;QAED,MAAM,IAAA,iBAAO,kCACR,OAAO,KACV,GAAG,EAAE,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,EACjC,mBAAmB,IACnB,CAAC;QAEH,KAAK,CAAC,cAAc,CAAC,CAAC;IACxB,CAAC,CAAA,CAAC,CAAC;IAEL,cAAc;SACX,WAAW,CAAC,sDAAsD,CAAC;SACnE,MAAM,CAAC,WAAW,EAAE,mBAAmB,EAAE,KAAK,CAAC;SAC/C,cAAc,CAAC,YAAY,EAAE,8BAA8B,CAAC;SAC5D,cAAc,CAAC,sBAAsB,EAAE,gBAAgB,CAAC;SACxD,MAAM,CAAC,cAAc,EAAE,uBAAuB,CAAC;SAC/C,cAAc,CACb,2BAA2B,EAC3B,sFAAsF,CACvF;SACA,MAAM,CAAC,WAAW,EAAE,oCAAoC,EAAE,KAAK,CAAC;SAChE,MAAM,CAAC,kBAAkB,EAAE,uBAAuB,CAAC;SACnD,SAAS,CAAC,eAAe,CAAC;SAC1B,IAAI,CAAC,WAAW,EAAE,wBAAgB,CAAC;SACnC,MAAM,CAAC,CAAO,OAAO,EAAE,EAAE;QACxB,uBAAuB;QACvB,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE;YAC5B,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;SAC/D;QACD,MAAM,IAAA,iBAAO,kCACR,OAAO,KACV,GAAG,EAAE,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,IACjC,CAAC;QACH,KAAK,CAAC,WAAW,CAAC,CAAC;IACrB,CAAC,CAAA,CAAC,CAAC;IAEL,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC;AA3FW,QAAA,oBAAoB,wBA2F/B"}
@@ -8,7 +8,7 @@ const workspace_1 = require("../../../../utils/unisphere/workspace");
8
8
  const sync_element_1 = require("./sync-element");
9
9
  const unisphere_utils_1 = require("../../../../utils/unisphere-utils");
10
10
  const defaults_1 = require("../../../../utils/listr2/defaults");
11
- const debug = (0, debug_1.default)('unisphere:context:upload:execute');
11
+ const debug = (0, debug_1.default)('unisphere:runtime:upload:execute');
12
12
  function execute(options) {
13
13
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
14
14
  debug(`options: ${JSON.stringify(options)}`);
@@ -76,34 +76,34 @@ function execute(options) {
76
76
  }),
77
77
  },
78
78
  {
79
- title: 'Sync contexts',
80
- enabled: Object.keys(unisphereElements.contexts || {}).length !== 0,
79
+ title: 'Sync runtimes',
80
+ enabled: Object.keys(unisphereElements.runtimes || {}).length !== 0,
81
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}`,
82
+ const runtimeTasks = Object.entries(unisphereElements.runtimes || []).map(([runtime, { hasGithubTag, version, nxProjectName, distributionChannel },]) => ({
83
+ title: `Sync runtime: ${runtime}`,
84
84
  skip: () => {
85
85
  if (distributionChannel === 'none') {
86
- debug(`Skipping context '${context}' because it has no distribution channel`);
86
+ debug(`Skipping runtime '${runtime}' because it has no distribution channel`);
87
87
  return true;
88
88
  }
89
89
  if (options.tagsCheck && !hasGithubTag) {
90
- debug(`Skipping context '${context}' because it doesn't have a github tag`);
90
+ debug(`Skipping runtime '${runtime}' because it doesn't have a github tag`);
91
91
  return true;
92
92
  }
93
93
  return false;
94
94
  },
95
95
  task: () => tslib_1.__awaiter(this, void 0, void 0, function* () {
96
- const bucketPrefix = (0, unisphere_utils_1.getElementContextBucketPrefix)(unisphereWorkspace.config.name, context, version);
96
+ const bucketPrefix = (0, unisphere_utils_1.getElementRuntimeBucketPrefix)(unisphereWorkspace.config.name, runtime, version);
97
97
  yield (0, sync_element_1.syncElement)({
98
98
  options,
99
99
  bucketPrefix,
100
- name: context,
100
+ name: runtime,
101
101
  nxProjectName,
102
102
  version,
103
103
  });
104
104
  }),
105
105
  }));
106
- return task.newListr(contextTasks);
106
+ return task.newListr(runtimeTasks);
107
107
  }),
108
108
  },
109
109
  ].filter(Boolean), (0, defaults_1.getDefaultListrOptions)());
@@ -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,MAAM,CAAC,IAAI,EAAE,CAChF,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,EAAE,EAAE;;gCACxB,IACE,CAAA,MAAA,iBAAiB,CAAC,SAAS,0CAAE,mBAAmB,MAAK,MAAM,EAC3D;oCACA,IAAI,CAAC,KAAK,GAAG,mEAAmE,CAAC;oCACjF,IAAI,CAA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b,aAAa;gCACb,OAAO;6BACR,CAAC,CAAC;wBACL,CAAC,CAAA;qBACF,CAAC,CACH,CAAC;oBAEF,OAAO,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;gBACrC,CAAC,CAAA;aACF;SACF,CAAC,MAAM,CAAC,OAAO,CAAC,EACjB,IAAA,iCAAsB,GAAE,CACzB,CAAC;QAEF,MAAM,KAAK,CAAC,GAAG,EAAE,CAAC;IACpB,CAAC;CAAA;AAxID,0BAwIC"}
1
+ {"version":3,"file":"execute.js","sourceRoot":"","sources":["../../../../../../../../../packages/unisphere-cli/src/lib/commands/runtime/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,MAAM,CAAC,IAAI,EAAE,CAChF,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,E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