@unisphere/cli 1.58.9 → 1.58.10
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.
- package/package.json +1 -1
- package/src/lib/commands/dev/command.d.ts +2 -0
- package/src/lib/commands/dev/command.js +13 -0
- package/src/lib/commands/dev/command.js.map +1 -0
- package/src/lib/commands/dev/local-nx-command.d.ts +2 -0
- package/src/lib/commands/dev/local-nx-command.js +360 -0
- package/src/lib/commands/dev/local-nx-command.js.map +1 -0
- package/src/lib/unisphere.js +2 -0
- package/src/lib/unisphere.js.map +1 -1
package/package.json
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createDevCommand = void 0;
|
|
4
|
+
const commander_1 = require("commander");
|
|
5
|
+
const local_nx_command_1 = require("./local-nx-command");
|
|
6
|
+
const createDevCommand = () => {
|
|
7
|
+
const devCommand = new commander_1.Command('dev');
|
|
8
|
+
devCommand.description('development tools for local testing and migration');
|
|
9
|
+
(0, local_nx_command_1.createLocalNxCommand)(devCommand);
|
|
10
|
+
return devCommand;
|
|
11
|
+
};
|
|
12
|
+
exports.createDevCommand = createDevCommand;
|
|
13
|
+
//# sourceMappingURL=command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.js","sourceRoot":"","sources":["../../../../../../../packages/unisphere-cli/src/lib/commands/dev/command.ts"],"names":[],"mappings":";;;AAAA,yCAAoC;AACpC,yDAA0D;AAEnD,MAAM,gBAAgB,GAAG,GAAY,EAAE;IAC5C,MAAM,UAAU,GAAG,IAAI,mBAAO,CAAC,KAAK,CAAC,CAAC;IACtC,UAAU,CAAC,WAAW,CAAC,mDAAmD,CAAC,CAAC;IAE5E,IAAA,uCAAoB,EAAC,UAAU,CAAC,CAAC;IAEjC,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC;AAPW,QAAA,gBAAgB,oBAO3B"}
|
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createLocalNxCommand = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const debug_1 = require("debug");
|
|
6
|
+
const listr2_1 = require("listr2");
|
|
7
|
+
const execa = require("execa");
|
|
8
|
+
const fs_1 = require("fs");
|
|
9
|
+
const path_1 = require("path");
|
|
10
|
+
const child_process_1 = require("child_process");
|
|
11
|
+
const defaults_1 = require("../../utils/listr2/defaults");
|
|
12
|
+
const create_exec_task_1 = require("../../utils/listr2/create-exec-task");
|
|
13
|
+
const utils_1 = require("../../utils/utils");
|
|
14
|
+
const prompts_1 = require("../../utils/prompts/prompts");
|
|
15
|
+
const colorette_1 = require("colorette");
|
|
16
|
+
const debug = (0, debug_1.default)('unisphere:dev:local-nx');
|
|
17
|
+
const VERDACCIO_REGISTRY = 'http://localhost:4873/';
|
|
18
|
+
const PACKAGE_NAME = '@unisphere/nx';
|
|
19
|
+
/**
|
|
20
|
+
* Get the global npm path, avoiding node_modules/.bin/npm
|
|
21
|
+
* This ensures we use the user's installed npm (e.g., from nvm) instead of old bundled versions
|
|
22
|
+
*/
|
|
23
|
+
function getGlobalNpmPath() {
|
|
24
|
+
const npmPath = (0, child_process_1.execSync)('bash -l -c "PATH=$(echo $PATH | sed \'s|[^:]*node_modules/\\.bin:||g\') && which npm"', { encoding: 'utf-8' }).trim();
|
|
25
|
+
debug('Found global npm at: %s', npmPath);
|
|
26
|
+
return npmPath;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Check if Verdaccio is running by making a request to the registry
|
|
30
|
+
*/
|
|
31
|
+
function isVerdaccioRunning() {
|
|
32
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
try {
|
|
34
|
+
const response = yield fetch(VERDACCIO_REGISTRY);
|
|
35
|
+
return response.ok;
|
|
36
|
+
}
|
|
37
|
+
catch (_a) {
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Check if user is logged in to Verdaccio
|
|
44
|
+
*/
|
|
45
|
+
function isLoggedInToVerdaccio() {
|
|
46
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
47
|
+
try {
|
|
48
|
+
const result = yield execa('npm', ['whoami', '--registry', VERDACCIO_REGISTRY]);
|
|
49
|
+
debug('Logged in as: %s', result.stdout);
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
catch (_a) {
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Login to Verdaccio with default credentials
|
|
59
|
+
*/
|
|
60
|
+
function loginToVerdaccio() {
|
|
61
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
62
|
+
debug('Logging in to Verdaccio');
|
|
63
|
+
// Use npm-cli-login approach with environment variables
|
|
64
|
+
yield execa('npx', [
|
|
65
|
+
'npm-cli-adduser',
|
|
66
|
+
'--registry',
|
|
67
|
+
VERDACCIO_REGISTRY,
|
|
68
|
+
'--username',
|
|
69
|
+
'local',
|
|
70
|
+
'--password',
|
|
71
|
+
'local',
|
|
72
|
+
'--email',
|
|
73
|
+
'local@local.com',
|
|
74
|
+
], {
|
|
75
|
+
stdio: 'inherit',
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Start Verdaccio in background
|
|
81
|
+
*/
|
|
82
|
+
function startVerdaccio() {
|
|
83
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
84
|
+
debug('Starting Verdaccio in background');
|
|
85
|
+
const verdaccioProcess = execa('npx', ['verdaccio'], {
|
|
86
|
+
detached: true,
|
|
87
|
+
stdio: 'ignore',
|
|
88
|
+
});
|
|
89
|
+
// Wait for Verdaccio to be ready
|
|
90
|
+
let attempts = 0;
|
|
91
|
+
const maxAttempts = 30; // 30 seconds timeout
|
|
92
|
+
while (attempts < maxAttempts) {
|
|
93
|
+
if (yield isVerdaccioRunning()) {
|
|
94
|
+
debug('Verdaccio is ready');
|
|
95
|
+
return verdaccioProcess;
|
|
96
|
+
}
|
|
97
|
+
yield new Promise((resolve) => setTimeout(resolve, 1000));
|
|
98
|
+
attempts++;
|
|
99
|
+
}
|
|
100
|
+
throw new Error('Verdaccio failed to start within 30 seconds');
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
const createLocalNxCommand = (parentCommand) => {
|
|
104
|
+
const command = parentCommand.command('local-nx');
|
|
105
|
+
command
|
|
106
|
+
.description('manage NX plugin migration locally using Verdaccio (local npm registry)')
|
|
107
|
+
.option('--verbose', 'output debug logs', false)
|
|
108
|
+
.requiredOption('--path <path>', 'path to the NX plugin project (unisphere-nx-workspace-plugin)')
|
|
109
|
+
.option('--cwd <name>', 'the working directory for running migrations')
|
|
110
|
+
.option('--skip-build', 'skip building the NX plugin (use existing build)', false)
|
|
111
|
+
.option('--skip-npm-ci', 'skip running npm ci in target project', false)
|
|
112
|
+
.hook('preAction', utils_1.printVerboseHook)
|
|
113
|
+
.action((options) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
114
|
+
const nxPluginPath = options.path;
|
|
115
|
+
const targetPath = options.cwd || process.cwd();
|
|
116
|
+
// Validate NX plugin path
|
|
117
|
+
if (!(0, fs_1.existsSync)(nxPluginPath)) {
|
|
118
|
+
console.error((0, colorette_1.red)(`Error: NX plugin path does not exist: ${nxPluginPath}`));
|
|
119
|
+
process.exit(1);
|
|
120
|
+
}
|
|
121
|
+
const packageJsonPath = (0, path_1.join)(nxPluginPath, 'package.json');
|
|
122
|
+
if (!(0, fs_1.existsSync)(packageJsonPath)) {
|
|
123
|
+
console.error((0, colorette_1.red)(`Error: No package.json found at: ${packageJsonPath}`));
|
|
124
|
+
process.exit(1);
|
|
125
|
+
}
|
|
126
|
+
// Assumes NX plugin follows unisphere-nx-workspace-plugin structure: packages/nx
|
|
127
|
+
const nxPackagePath = (0, path_1.join)(nxPluginPath, 'packages', 'nx');
|
|
128
|
+
if (!(0, fs_1.existsSync)(nxPackagePath)) {
|
|
129
|
+
console.error((0, colorette_1.red)(`Error: NX package not found at: ${nxPackagePath}`));
|
|
130
|
+
console.error((0, colorette_1.red)(`Expected structure: ${nxPluginPath}/packages/nx`));
|
|
131
|
+
process.exit(1);
|
|
132
|
+
}
|
|
133
|
+
// Check Verdaccio status
|
|
134
|
+
const verdaccioRunning = yield isVerdaccioRunning();
|
|
135
|
+
debug('Verdaccio running: %s', verdaccioRunning);
|
|
136
|
+
if (!verdaccioRunning) {
|
|
137
|
+
console.log((0, colorette_1.yellow)('\nVerdaccio is not running at ' + VERDACCIO_REGISTRY));
|
|
138
|
+
const shouldStart = yield (0, prompts_1.askQuestion)('Would you like to start Verdaccio automatically?');
|
|
139
|
+
if (!shouldStart) {
|
|
140
|
+
console.log((0, colorette_1.yellow)('\nPlease start Verdaccio manually by running:'));
|
|
141
|
+
console.log((0, colorette_1.bold)(' npx verdaccio\n'));
|
|
142
|
+
process.exit(1);
|
|
143
|
+
}
|
|
144
|
+
console.log((0, colorette_1.green)('Starting Verdaccio...'));
|
|
145
|
+
try {
|
|
146
|
+
yield startVerdaccio();
|
|
147
|
+
console.log((0, colorette_1.green)('Verdaccio started successfully!\n'));
|
|
148
|
+
}
|
|
149
|
+
catch (error) {
|
|
150
|
+
console.error((0, colorette_1.red)(`Failed to start Verdaccio: ${error.message}`));
|
|
151
|
+
process.exit(1);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
// Check Verdaccio authentication
|
|
155
|
+
const isLoggedIn = yield isLoggedInToVerdaccio();
|
|
156
|
+
debug('Logged in to Verdaccio: %s', isLoggedIn);
|
|
157
|
+
if (!isLoggedIn) {
|
|
158
|
+
console.log((0, colorette_1.yellow)('\nYou are not logged in to Verdaccio at ' + VERDACCIO_REGISTRY));
|
|
159
|
+
const shouldLogin = yield (0, prompts_1.askQuestion)('Would you like to login automatically with default credentials (local/local)?');
|
|
160
|
+
if (!shouldLogin) {
|
|
161
|
+
console.log((0, colorette_1.yellow)('\nPlease login to Verdaccio manually by running:'));
|
|
162
|
+
console.log((0, colorette_1.bold)(` npm adduser --registry=${VERDACCIO_REGISTRY}\n`));
|
|
163
|
+
process.exit(1);
|
|
164
|
+
}
|
|
165
|
+
console.log((0, colorette_1.green)('Logging in to Verdaccio...'));
|
|
166
|
+
try {
|
|
167
|
+
yield loginToVerdaccio();
|
|
168
|
+
console.log((0, colorette_1.green)('Logged in to Verdaccio successfully!\n'));
|
|
169
|
+
}
|
|
170
|
+
catch (error) {
|
|
171
|
+
console.error((0, colorette_1.red)(`Failed to login to Verdaccio: ${error.message}`));
|
|
172
|
+
console.log((0, colorette_1.yellow)('\nPlease login manually by running:'));
|
|
173
|
+
console.log((0, colorette_1.bold)(` npm adduser --registry=${VERDACCIO_REGISTRY}\n`));
|
|
174
|
+
process.exit(1);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
// Environment for nx migrate - includes Verdaccio registry and nx flags
|
|
178
|
+
const migrateEnv = {
|
|
179
|
+
NPM_CONFIG_REGISTRY: VERDACCIO_REGISTRY,
|
|
180
|
+
NX_MIGRATE_SKIP_INSTALL: '1',
|
|
181
|
+
NX_SKIP_PROVENANCE_CHECK: '1',
|
|
182
|
+
};
|
|
183
|
+
const task = new listr2_1.Listr([
|
|
184
|
+
// Stage 1: Build NX plugin
|
|
185
|
+
{
|
|
186
|
+
title: 'Building NX plugin',
|
|
187
|
+
skip: () => options.skipBuild,
|
|
188
|
+
task: (_, task) => {
|
|
189
|
+
return task.newListr([
|
|
190
|
+
(0, create_exec_task_1.createExecTask)({
|
|
191
|
+
title: 'Running npm run build',
|
|
192
|
+
command: 'npm run build',
|
|
193
|
+
cwd: nxPluginPath,
|
|
194
|
+
}),
|
|
195
|
+
]);
|
|
196
|
+
},
|
|
197
|
+
},
|
|
198
|
+
// Stage 2: Unpublish from Verdaccio (ignore errors if not exists)
|
|
199
|
+
{
|
|
200
|
+
title: 'Unpublishing existing package from Verdaccio',
|
|
201
|
+
task: (_, task) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
202
|
+
try {
|
|
203
|
+
// Unpublish entire package (all versions) from local Verdaccio
|
|
204
|
+
// Using --registry flag to target Verdaccio directly
|
|
205
|
+
const unpublish = execa('npm', ['unpublish', PACKAGE_NAME, '--force', '--registry', VERDACCIO_REGISTRY], {
|
|
206
|
+
cwd: nxPackagePath,
|
|
207
|
+
});
|
|
208
|
+
if (unpublish.stdout)
|
|
209
|
+
unpublish.stdout.pipe(task.stdout());
|
|
210
|
+
if (unpublish.stderr)
|
|
211
|
+
unpublish.stderr.pipe(task.stdout());
|
|
212
|
+
yield unpublish;
|
|
213
|
+
}
|
|
214
|
+
catch (error) {
|
|
215
|
+
// Ignore errors - package might not exist in registry
|
|
216
|
+
debug('Unpublish failed (this is OK): %s', error.message);
|
|
217
|
+
task.output = 'No existing package to unpublish (this is OK)';
|
|
218
|
+
}
|
|
219
|
+
}),
|
|
220
|
+
},
|
|
221
|
+
// Stage 3: Publish to Verdaccio with --tag local
|
|
222
|
+
{
|
|
223
|
+
title: 'Publishing package to Verdaccio with @local tag',
|
|
224
|
+
task: (_, task) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
225
|
+
var _a, _b, _c, _d;
|
|
226
|
+
const maxRetries = 2;
|
|
227
|
+
let lastError;
|
|
228
|
+
// Try publishing with automatic retry for transient uplink failures
|
|
229
|
+
for (let attempt = 1; attempt <= maxRetries; attempt++) {
|
|
230
|
+
try {
|
|
231
|
+
if (attempt > 1) {
|
|
232
|
+
task.output = `Retrying publish (attempt ${attempt}/${maxRetries})...`;
|
|
233
|
+
yield new Promise(resolve => setTimeout(resolve, 2000)); // Wait 2s between retries
|
|
234
|
+
}
|
|
235
|
+
const publish = execa('npm', ['publish', '--tag', 'local', '--registry', VERDACCIO_REGISTRY], {
|
|
236
|
+
cwd: nxPackagePath,
|
|
237
|
+
});
|
|
238
|
+
if (publish.stdout)
|
|
239
|
+
publish.stdout.pipe(task.stdout());
|
|
240
|
+
if (publish.stderr)
|
|
241
|
+
publish.stderr.pipe(task.stdout());
|
|
242
|
+
yield publish;
|
|
243
|
+
task.output = 'Published successfully';
|
|
244
|
+
return; // Success!
|
|
245
|
+
}
|
|
246
|
+
catch (error) {
|
|
247
|
+
lastError = error;
|
|
248
|
+
// If it's the uplink error and we have retries left, try again
|
|
249
|
+
if ((((_a = error.message) === null || _a === void 0 ? void 0 : _a.includes('503')) || ((_b = error.message) === null || _b === void 0 ? void 0 : _b.includes('uplink'))) && attempt < maxRetries) {
|
|
250
|
+
debug(`Publish attempt ${attempt} failed due to uplink issue, retrying...`);
|
|
251
|
+
continue;
|
|
252
|
+
}
|
|
253
|
+
// Last attempt failed or non-uplink error
|
|
254
|
+
break;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
// All retries exhausted, show helpful error
|
|
258
|
+
if (((_c = lastError.message) === null || _c === void 0 ? void 0 : _c.includes('503')) || ((_d = lastError.message) === null || _d === void 0 ? void 0 : _d.includes('uplink'))) {
|
|
259
|
+
task.output = (0, colorette_1.yellow)('Uplink check failed after retries');
|
|
260
|
+
console.error((0, colorette_1.yellow)('\n⚠️ Verdaccio uplink check is failing (npmjs.org unreachable)\n'));
|
|
261
|
+
console.error('This usually happens due to:');
|
|
262
|
+
console.error(' • Corporate proxy/firewall blocking npmjs.org');
|
|
263
|
+
console.error(' • No internet connection');
|
|
264
|
+
console.error(' • npmjs.org temporary outage\n');
|
|
265
|
+
console.error((0, colorette_1.bold)('Optional Fix (if this happens frequently):'));
|
|
266
|
+
console.error('Add to ~/.config/verdaccio/config.yaml:\n');
|
|
267
|
+
console.error((0, colorette_1.bold)(' publish:'));
|
|
268
|
+
console.error((0, colorette_1.bold)(' allow_offline: true\n'));
|
|
269
|
+
console.error('Then restart: pkill verdaccio && npx verdaccio\n');
|
|
270
|
+
console.error((0, colorette_1.yellow)('Note:') + ' This is OPTIONAL. Most developers won\'t need this.\n');
|
|
271
|
+
}
|
|
272
|
+
throw lastError;
|
|
273
|
+
}),
|
|
274
|
+
},
|
|
275
|
+
// Stage 4: Run nx migrate with @local dist-tag
|
|
276
|
+
{
|
|
277
|
+
title: 'Running NX migrate',
|
|
278
|
+
task: (_, task) => {
|
|
279
|
+
return task.newListr([
|
|
280
|
+
(0, create_exec_task_1.createExecTask)({
|
|
281
|
+
title: `Running npx nx migrate ${PACKAGE_NAME}@local`,
|
|
282
|
+
command: `npx nx migrate ${PACKAGE_NAME}@local`,
|
|
283
|
+
cwd: targetPath,
|
|
284
|
+
env: migrateEnv,
|
|
285
|
+
}),
|
|
286
|
+
]);
|
|
287
|
+
},
|
|
288
|
+
},
|
|
289
|
+
// Stage 5: Install the package from Verdaccio with @local tag
|
|
290
|
+
{
|
|
291
|
+
title: 'Installing package from Verdaccio',
|
|
292
|
+
task: (_, task) => {
|
|
293
|
+
const globalNpmPath = getGlobalNpmPath();
|
|
294
|
+
task.output = `Running npm i ${PACKAGE_NAME}@local with ${globalNpmPath}`;
|
|
295
|
+
// Use execSync with global npm and Verdaccio registry
|
|
296
|
+
// Use bash -l -c to ensure login shell environment
|
|
297
|
+
// Use --legacy-peer-deps to handle peer dependency conflicts
|
|
298
|
+
try {
|
|
299
|
+
(0, child_process_1.execSync)(`bash -l -c 'cd "${targetPath}" && NPM_CONFIG_REGISTRY=${VERDACCIO_REGISTRY} "${globalNpmPath}" i ${PACKAGE_NAME}@local --legacy-peer-deps'`, {
|
|
300
|
+
stdio: 'inherit',
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
catch (error) {
|
|
304
|
+
throw new Error(`npm install failed with exit code ${error.status}`);
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
},
|
|
308
|
+
// Stage 6: Run migrations
|
|
309
|
+
{
|
|
310
|
+
title: 'Running migrations',
|
|
311
|
+
task: (ctx, task) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
312
|
+
// Check if migrations.json exists - if not, no migrations to run
|
|
313
|
+
const migrationsPath = (0, path_1.join)(targetPath, 'migrations.json');
|
|
314
|
+
if (!(0, fs_1.existsSync)(migrationsPath)) {
|
|
315
|
+
task.output = 'No migrations to run (migrations.json not found)';
|
|
316
|
+
ctx.migrationsRan = false;
|
|
317
|
+
return;
|
|
318
|
+
}
|
|
319
|
+
task.output = 'Running nx migrate --run-migrations...';
|
|
320
|
+
ctx.migrationsRan = true;
|
|
321
|
+
// Run migrations - this may fail at the end when NX tries to run npm install
|
|
322
|
+
// But the migrations themselves will have succeeded, so we continue anyway
|
|
323
|
+
try {
|
|
324
|
+
const execute = execa('npx', ['nx', 'migrate', '--run-migrations'], {
|
|
325
|
+
cwd: targetPath,
|
|
326
|
+
env: Object.assign(Object.assign({}, process.env), migrateEnv),
|
|
327
|
+
});
|
|
328
|
+
if (execute.stdout)
|
|
329
|
+
execute.stdout.pipe(task.stdout());
|
|
330
|
+
if (execute.stderr)
|
|
331
|
+
execute.stderr.pipe(task.stdout());
|
|
332
|
+
yield execute;
|
|
333
|
+
task.output = 'Migrations completed successfully';
|
|
334
|
+
}
|
|
335
|
+
catch (error) {
|
|
336
|
+
debug('Migrations command failed but migrations.json was processed');
|
|
337
|
+
task.output = 'Migrations ran successfully (ignoring final npm install failure)';
|
|
338
|
+
// Continue - migrations succeeded, just the automatic npm install failed
|
|
339
|
+
}
|
|
340
|
+
}),
|
|
341
|
+
},
|
|
342
|
+
], (0, defaults_1.getDefaultListrOptions)());
|
|
343
|
+
try {
|
|
344
|
+
yield task.run({
|
|
345
|
+
nxPluginPath,
|
|
346
|
+
targetPath,
|
|
347
|
+
verdaccioStarted: !verdaccioRunning,
|
|
348
|
+
migrationsRan: false,
|
|
349
|
+
});
|
|
350
|
+
console.log((0, colorette_1.green)('\n\nLocal NX migration completed successfully!\n'));
|
|
351
|
+
}
|
|
352
|
+
catch (error) {
|
|
353
|
+
console.error((0, colorette_1.red)(`\nMigration failed: ${error.message}\n`));
|
|
354
|
+
process.exit(1);
|
|
355
|
+
}
|
|
356
|
+
}));
|
|
357
|
+
return command;
|
|
358
|
+
};
|
|
359
|
+
exports.createLocalNxCommand = createLocalNxCommand;
|
|
360
|
+
//# sourceMappingURL=local-nx-command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-nx-command.js","sourceRoot":"","sources":["../../../../../../../packages/unisphere-cli/src/lib/commands/dev/local-nx-command.ts"],"names":[],"mappings":";;;;AACA,iCAA0B;AAC1B,mCAA+B;AAC/B,+BAA+B;AAC/B,2BAAgC;AAChC,+BAA4B;AAC5B,iDAAyC;AACzC,0DAAqE;AACrE,0EAAqE;AACrE,6CAAqD;AACrD,yDAA0D;AAC1D,yCAAqD;AAErD,MAAM,KAAK,GAAG,IAAA,eAAK,EAAC,wBAAwB,CAAC,CAAC;AAE9C,MAAM,kBAAkB,GAAG,wBAAwB,CAAC;AACpD,MAAM,YAAY,GAAG,eAAe,CAAC;AASrC;;;GAGG;AACH,SAAS,gBAAgB;IACvB,MAAM,OAAO,GAAG,IAAA,wBAAQ,EACtB,uFAAuF,EACvF,EAAE,QAAQ,EAAE,OAAO,EAAE,CACtB,CAAC,IAAI,EAAE,CAAC;IACT,KAAK,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAC1C,OAAO,OAAO,CAAC;AACjB,CAAC;AAED;;GAEG;AACH,SAAe,kBAAkB;;QAC/B,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,kBAAkB,CAAC,CAAC;YACjD,OAAO,QAAQ,CAAC,EAAE,CAAC;QACrB,CAAC;QAAC,WAAM,CAAC;YACP,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;CAAA;AAED;;GAEG;AACH,SAAe,qBAAqB;;QAClC,IAAI,CAAC;YACH,MAAM,MAAM,GA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,CAAC,KAAK,CAAC,IAAA,eAAG,EAAC,uBAAuB,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC;YAC7D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;IACH,CAAC,CAAA,CAAC,CAAC;IAEL,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AA3UW,QAAA,oBAAoB,wBA2U/B"}
|
package/src/lib/unisphere.js
CHANGED
|
@@ -13,6 +13,7 @@ const { createRuntimeJsonCommand } = require('./commands/runtime-json/command');
|
|
|
13
13
|
const { createLanguageCommand } = require('./commands/language/language-command');
|
|
14
14
|
const { createApplicationsCommand } = require('./commands/application/command');
|
|
15
15
|
const { createMarketplaceCommand } = require('./commands/marketplace/marketplace-command');
|
|
16
|
+
const { createDevCommand } = require('./commands/dev/command');
|
|
16
17
|
module.exports = () => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
17
18
|
const program = new Command();
|
|
18
19
|
program
|
|
@@ -32,6 +33,7 @@ module.exports = () => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
|
32
33
|
program.addCommand(createResetCommand());
|
|
33
34
|
//program.addCommand(createCreateCommand());
|
|
34
35
|
program.addCommand(createRuntimeJsonCommand());
|
|
36
|
+
program.addCommand(createDevCommand());
|
|
35
37
|
program.parse(process.argv);
|
|
36
38
|
});
|
|
37
39
|
// 1
|
package/src/lib/unisphere.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unisphere.js","sourceRoot":"","sources":["../../../../../packages/unisphere-cli/src/lib/unisphere.js"],"names":[],"mappings":";AAAA,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AACzC,MAAM,EAAE,oBAAoB,EAAC,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAA;AACrE,MAAM,EAAE,oBAAoB,EAAC,GAAG,OAAO,CAAC,qCAAqC,CAAC,CAAA;AAC9E,MAAM,EAAE,iB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