@boltic/cli 1.0.6-beta.4 → 1.0.6-beta.5
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
|
@@ -151,6 +151,19 @@ async function handleSync(args) {
|
|
|
151
151
|
if (fs.existsSync(specPath)) {
|
|
152
152
|
const specContent = JSON.parse(fs.readFileSync(specPath, "utf8"));
|
|
153
153
|
// Update integration with spec.json content
|
|
154
|
+
|
|
155
|
+
if (
|
|
156
|
+
specContent.trigger_type &&
|
|
157
|
+
specContent.trigger_type !== "CloudTrigger"
|
|
158
|
+
) {
|
|
159
|
+
console.error(
|
|
160
|
+
chalk.red(
|
|
161
|
+
`Error: Invalid trigger_type "${specContent.trigger_type}". It should be "CloudTrigger" or null.`
|
|
162
|
+
)
|
|
163
|
+
);
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
|
|
154
167
|
const updatedIntegration = await updateIntegration(
|
|
155
168
|
apiUrl,
|
|
156
169
|
token,
|