Compare commits

...

3 Commits

Author SHA1 Message Date
Wieland Schoebl
1d043c2ef1 0.0.3 2021-08-05 19:41:13 +02:00
Wieland Schöbl
9a881299dc fix: put es template parsing 2021-08-05 19:22:28 +02:00
Rainer Killinger
9c78fc2366 docs: update changelog 2021-08-05 16:28:38 +02:00
4 changed files with 8 additions and 5 deletions

View File

@@ -1,6 +1,9 @@
### Features
## [0.0.2](https://gitlab.com/openstapps/es-mapping-generator/compare/28334b800c014a9e0b6e980b5365af6fdc1d8950...v0.0.2) (2021-08-05)
* add es-mapping-gen ([42c9d020](https://gitlab.com/openstapps/es-mapping-gen/commit/42c9d020361eca12370b7af27fb4502335df82bc))
### Bug Fixes
* fix unwanted crash when not supplying an error path ([28334b8](https://gitlab.com/openstapps/es-mapping-generator/commit/28334b800c014a9e0b6e980b5365af6fdc1d8950))

2
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{
"name": "@openstapps/es-mapping-gen",
"version": "0.0.2",
"version": "0.0.3",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@@ -1,6 +1,6 @@
{
"name": "@openstapps/es-mapping-generator",
"version": "0.0.2",
"version": "0.0.3",
"description": "Tool to convert TypeScript Interfaces to Elasticsearch Mappings",
"license": "GPL-3.0-only",
"main": "./lib/index.js",

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)) {