From 9a881299dc9d0a6d59b370340880a10bd8b1e2c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wieland=20Sch=C3=B6bl?= Date: Thu, 5 Aug 2021 19:22:28 +0200 Subject: [PATCH] fix: put es template parsing --- src/cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli.ts b/src/cli.ts index 91e08751..cf9926d3 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -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)) {