@contrail/cli 2.1.18 → 2.1.20

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/README.md CHANGED
@@ -15,7 +15,7 @@ $ npm install -g @contrail/cli
15
15
  $ contrail COMMAND
16
16
  running command...
17
17
  $ contrail (--version)
18
- @contrail/cli/2.1.18 darwin-arm64 node-v18.13.0
18
+ @contrail/cli/2.1.20 darwin-arm64 node-v18.13.0
19
19
  $ contrail --help [COMMAND]
20
20
  USAGE
21
21
  $ contrail COMMAND
@@ -40,7 +40,7 @@ class UpgradeApp extends core_1.Command {
40
40
  message: 'Which app version would you like to upgrade to?',
41
41
  choices: versions.map(x => {
42
42
  const number = x.versionNumber.toString().padStart(4, '0');
43
- const name = x.id === appOrgToUpgrade.appVersionId ? `${number} (${x.createdOn}) (${x.appRuntime}) (current)` : `${number} (${x.createdOn}) (${x.appRuntime})`;
43
+ const name = x.id === appOrgToUpgrade.appVersionId ? `${number} - ${x.id} (${x.createdOn}) (${x.appRuntime}) (current)` : `${number} - ${x.id} (${x.createdOn}) (${x.appRuntime})`;
44
44
  return {
45
45
  value: x.id, name
46
46
  };
@@ -160,7 +160,17 @@ async function createNodePackage(appIdentifier, debug, dryRun) {
160
160
  child_process.execSync('npm install --omit=dev --prefix tmp/');
161
161
  console.log('Installing production dependencies done.');
162
162
  console.log('Building package...');
163
- child_process.execSync('npx tsc --outDir tmp/dist');
163
+ try {
164
+ child_process.execSync('npx tsc --outDir tmp/dist');
165
+ }
166
+ catch (e) {
167
+ console.error('%s Failed to build package.', chalk_1.default.red.bold('APP'));
168
+ const stdOut = e.stdout.toString();
169
+ const stdErr = e.stderr.toString();
170
+ console.error('Build Error(stdout):', stdOut);
171
+ console.error('Build Error(stderr):', stdErr);
172
+ throw e;
173
+ }
164
174
  console.log('Building package done.');
165
175
  console.log('Copying Assets...');
166
176
  child_process.execSync('npx copyfiles assets/**/* tmp/dist/');
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.1.18",
2
+ "version": "2.1.20",
3
3
  "commands": {
4
4
  "app:create": {
5
5
  "id": "app:create",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/cli",
3
- "version": "2.1.18",
3
+ "version": "2.1.20",
4
4
  "description": "VibeIQ's Contrail Platform CLI.",
5
5
  "bin": {
6
6
  "contrail-cli": "./bin/run",