@extrahorizon/exh-cli 1.7.0-dev-50-125337b → 1.7.0-dev-51-504a36e
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/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* This allows you to specify a json-schema for the schema files themselves, providing hints and validation in your editor
|
|
6
6
|
* `exh data schemas sync` now allows all components in a schema to have a `description` property
|
|
7
7
|
* These descriptions are not synced, but allow you to provide inline documentation for the components in your schema
|
|
8
|
+
* Fixed some output inconsistencies in the sync commands
|
|
8
9
|
|
|
9
10
|
### v1.6.1
|
|
10
11
|
* `exh data schemas sync` no longer logs the full schema definition json
|
|
@@ -62,7 +62,6 @@ async function syncTargetFile(sdk, targetFile, dry, ignoreVerificationErrors) {
|
|
|
62
62
|
}
|
|
63
63
|
exports.syncTargetFile = syncTargetFile;
|
|
64
64
|
async function syncTargetDir(sdk, targetDir, dry, ignoreVerificationErrors) {
|
|
65
|
-
await (0, verify_1.handler)({ dir: targetDir, file: null, ignoreVerificationErrors });
|
|
66
65
|
const targetFiles = (0, listFilesInDir_1.flatListFiles)(targetDir, '.json');
|
|
67
66
|
for (const filePath of targetFiles) {
|
|
68
67
|
await syncTargetFile(sdk, filePath, dry, ignoreVerificationErrors);
|
|
@@ -167,6 +167,7 @@ function reportRootAttributesChanges(cloudSchema, updatedValues) {
|
|
|
167
167
|
console.group(`Schema ${cloudSchema.name} - Root attributes`);
|
|
168
168
|
if (changedKeys.length < 1) {
|
|
169
169
|
console.log('No update required.');
|
|
170
|
+
console.groupEnd();
|
|
170
171
|
return;
|
|
171
172
|
}
|
|
172
173
|
changedKeys.forEach(key => {
|
|
@@ -179,6 +180,7 @@ function reportSchemaChanges(group, changes) {
|
|
|
179
180
|
console.group(group);
|
|
180
181
|
if (!toAdd.length && !toRemove.length && !toUpdate.length) {
|
|
181
182
|
console.log('No update required');
|
|
183
|
+
console.groupEnd();
|
|
182
184
|
return;
|
|
183
185
|
}
|
|
184
186
|
toAdd.forEach(key => console.log(`Will be added: ${chalk.green(getIdentifier(key))}`));
|
package/build/commands/sync.js
CHANGED
|
@@ -110,9 +110,10 @@ const handler = async ({ sdk, path, schemas, tasks, templates, dispatchers, clea
|
|
|
110
110
|
const dispatchersPath = ospath.join(targetPath, 'dispatchers.json');
|
|
111
111
|
const isValidPath = (0, fs_1.existsSync)(dispatchersPath);
|
|
112
112
|
if (isValidPath) {
|
|
113
|
+
console.log(chalk.green('\n ⚙️ Syncing dispatchers...'));
|
|
113
114
|
await (0, dispatchers_1.sync)(sdk, dispatchersPath, cleanDispatchers);
|
|
114
115
|
}
|
|
115
|
-
else {
|
|
116
|
+
else if (dispatchers) {
|
|
116
117
|
console.log(chalk.yellow('Warning: dispatchers.json not found'));
|
|
117
118
|
}
|
|
118
119
|
}
|