fix: put es template parsing

This commit is contained in:
Wieland Schöbl
2021-08-05 19:22:28 +02:00
parent 9c78fc2366
commit 9a881299dc

View File

@@ -98,7 +98,7 @@ commander
const srcPath = resolve(relativeSrcPath);
// get project reflection
const templates = JSON.parse(srcPath) as ElasticsearchTemplateCollection;
const templates = require(srcPath) as ElasticsearchTemplateCollection;
for (const template in templates) {
if (!templates.hasOwnProperty(template)) {