@adobe/aem-cli 16.7.8 → 16.7.9
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 +7 -0
- package/package.json +2 -2
- package/src/server/Indexer.js +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [16.7.9](https://github.com/adobe/helix-cli/compare/v16.7.8...v16.7.9) (2024-09-26)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* show errors found in IndexConfig ([d570e9a](https://github.com/adobe/helix-cli/commit/d570e9a4fb4c2d13bb058883eefcb421631bc199))
|
|
7
|
+
|
|
1
8
|
## [16.7.8](https://github.com/adobe/helix-cli/compare/v16.7.7...v16.7.8) (2024-09-25)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/aem-cli",
|
|
3
|
-
"version": "16.7.
|
|
3
|
+
"version": "16.7.9",
|
|
4
4
|
"description": "AEM CLI",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@adobe/fetch": "4.1.9",
|
|
42
42
|
"@adobe/helix-log": "6.0.4",
|
|
43
|
-
"@adobe/helix-shared-config": "11.0.
|
|
43
|
+
"@adobe/helix-shared-config": "11.0.1",
|
|
44
44
|
"@adobe/helix-shared-git": "3.0.14",
|
|
45
45
|
"@adobe/helix-shared-indexer": "2.1.5",
|
|
46
46
|
"camelcase": "8.0.0",
|
package/src/server/Indexer.js
CHANGED
|
@@ -72,8 +72,15 @@ export default class Indexer {
|
|
|
72
72
|
.withDirectory(this._cwd)
|
|
73
73
|
.withLogger(log)
|
|
74
74
|
.init();
|
|
75
|
+
const errors = this._index.getErrors();
|
|
76
|
+
if (errors.length) {
|
|
77
|
+
const detail = errors.map(({ message }) => (message)).join('\n');
|
|
78
|
+
throw new Error(`
|
|
79
|
+
${detail}`);
|
|
80
|
+
}
|
|
75
81
|
} catch (e) {
|
|
76
82
|
log.error(`Error in helix-query.yaml: ${e.message}`);
|
|
83
|
+
return;
|
|
77
84
|
}
|
|
78
85
|
if (this._printIndex && this._index.indices.length === 0) {
|
|
79
86
|
log.warn(chalk`AEM CLI started with {gray --print-index} but no valid {gray helix-query.yaml} found.`);
|