@boltic/cli 1.0.6-beta.5 → 1.0.6-beta.6
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/commands/integration.js +13 -0
- package/package.json +1 -1
package/commands/integration.js
CHANGED
|
@@ -262,6 +262,19 @@ async function handlePublish(args) {
|
|
|
262
262
|
if (fs.existsSync(specPath)) {
|
|
263
263
|
const specContent = JSON.parse(fs.readFileSync(specPath, "utf8"));
|
|
264
264
|
// Update integration with spec.json content
|
|
265
|
+
|
|
266
|
+
if (
|
|
267
|
+
specContent.trigger_type &&
|
|
268
|
+
specContent.trigger_type !== "CloudTrigger"
|
|
269
|
+
) {
|
|
270
|
+
console.error(
|
|
271
|
+
chalk.red(
|
|
272
|
+
`Error: Invalid trigger_type "${specContent.trigger_type}". It should be "CloudTrigger" or null.`
|
|
273
|
+
)
|
|
274
|
+
);
|
|
275
|
+
return;
|
|
276
|
+
}
|
|
277
|
+
|
|
265
278
|
const updatedIntegration = await updateIntegration(
|
|
266
279
|
apiUrl,
|
|
267
280
|
token,
|