@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 +1 -1
- package/dist/commands/app/upgrade.js +1 -1
- package/dist/helpers/app/app-deployer.js +11 -1
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
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
|
+
@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
|
-
|
|
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/');
|
package/oclif.manifest.json
CHANGED