@lightdash/cli 0.2209.0 → 0.2209.2
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/dist/.tsbuildinfo +1 -1
- package/dist/handlers/compile.js +2 -2
- package/package.json +3 -3
package/dist/handlers/compile.js
CHANGED
|
@@ -121,7 +121,7 @@ const compile = async (options) => {
|
|
|
121
121
|
common_1.DbtManifestVersion.V12,
|
|
122
122
|
].includes(manifestVersion)
|
|
123
123
|
? []
|
|
124
|
-
: Object.values(manifest.metrics), warehouseSqlBuilder, lightdashProjectConfig);
|
|
124
|
+
: Object.values(manifest.metrics || {}), warehouseSqlBuilder, lightdashProjectConfig);
|
|
125
125
|
console.error('');
|
|
126
126
|
explores = [...validExplores, ...failedExplores];
|
|
127
127
|
dbtMetrics = manifest.metrics;
|
|
@@ -138,7 +138,7 @@ const compile = async (options) => {
|
|
|
138
138
|
console.error('');
|
|
139
139
|
const errors = explores.filter((e) => (0, common_1.isExploreError)(e)).length;
|
|
140
140
|
console.error(`Compiled ${explores.length} explores, SUCCESS=${explores.length - errors} ERRORS=${errors}`);
|
|
141
|
-
const metricsCount = dbtMetrics === null ? 0 : Object.values(dbtMetrics
|
|
141
|
+
const metricsCount = dbtMetrics === null ? 0 : Object.values(dbtMetrics).length;
|
|
142
142
|
await analytics_1.LightdashAnalytics.track({
|
|
143
143
|
event: 'compile.completed',
|
|
144
144
|
properties: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightdash/cli",
|
|
3
|
-
"version": "0.2209.
|
|
3
|
+
"version": "0.2209.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"bin": {
|
|
6
6
|
"lightdash": "dist/index.js"
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"unique-names-generator": "^4.7.1",
|
|
35
35
|
"uuid": "^11.0.3",
|
|
36
36
|
"yaml": "^2.7.0",
|
|
37
|
-
"@lightdash/
|
|
38
|
-
"@lightdash/
|
|
37
|
+
"@lightdash/warehouses": "0.2209.2",
|
|
38
|
+
"@lightdash/common": "0.2209.2"
|
|
39
39
|
},
|
|
40
40
|
"description": "Lightdash CLI tool",
|
|
41
41
|
"devDependencies": {
|