mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-01 19:12:51 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1d043c2ef1 | ||
|
|
9a881299dc | ||
|
|
9c78fc2366 |
@@ -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
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@openstapps/es-mapping-gen",
|
||||
"version": "0.0.2",
|
||||
"version": "0.0.3",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user