@cydm/happy-elves 0.1.0-beta.273 → 0.1.0-beta.274
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.
|
@@ -277,7 +277,10 @@ function parseTail(flags) {
|
|
|
277
277
|
}
|
|
278
278
|
function printReleaseOutput(type, data, flags) {
|
|
279
279
|
if (wantsJson(flags)) {
|
|
280
|
-
|
|
280
|
+
const success = releaseOutputSuccess(type, data);
|
|
281
|
+
ok(type, data, {}, success);
|
|
282
|
+
if (!success)
|
|
283
|
+
process.exit(1);
|
|
281
284
|
return;
|
|
282
285
|
}
|
|
283
286
|
if (type === "release.resolve") {
|
|
@@ -292,8 +295,16 @@ function printReleaseOutput(type, data, flags) {
|
|
|
292
295
|
console.log(`Warning: ${warning.code} ${warning.message}`);
|
|
293
296
|
for (const error of resolved.errors)
|
|
294
297
|
console.log(`Error: ${error.code} ${error.message}`);
|
|
298
|
+
if (resolved.errors.length > 0)
|
|
299
|
+
process.exit(1);
|
|
295
300
|
return;
|
|
296
301
|
}
|
|
297
302
|
console.log(JSON.stringify(data, null, 2));
|
|
298
303
|
}
|
|
304
|
+
function releaseOutputSuccess(type, data) {
|
|
305
|
+
if (type !== "release.resolve")
|
|
306
|
+
return true;
|
|
307
|
+
const resolved = data;
|
|
308
|
+
return !Array.isArray(resolved.errors) || resolved.errors.length === 0;
|
|
309
|
+
}
|
|
299
310
|
//# sourceMappingURL=release.js.map
|
package/apps/cli/package.json
CHANGED
package/apps/daemon/package.json
CHANGED
|
@@ -116,6 +116,8 @@ export function normalizeMachineCapabilities(value) {
|
|
|
116
116
|
capabilities.devTools = record.devTools;
|
|
117
117
|
if (typeof record.daemonLifecycle === "boolean")
|
|
118
118
|
capabilities.daemonLifecycle = record.daemonLifecycle;
|
|
119
|
+
if (typeof record.releaseJobs === "boolean")
|
|
120
|
+
capabilities.releaseJobs = record.releaseJobs;
|
|
119
121
|
if (isRecord(record.sessionPrimitives)) {
|
|
120
122
|
capabilities.sessionPrimitives = {
|
|
121
123
|
resume: primitiveSupport(record.sessionPrimitives.resume),
|