kentico-cloud-graphql-schema-generator
Advanced tools
Comparing version 0.0.1-beta3 to 0.0.1-beta4
@@ -73,3 +73,3 @@ "use strict"; | ||
SchemaGenerator.prototype.wrapByModule = function (input) { | ||
return "export const TYPE_DEFINITION = `" + input + "`;"; | ||
return "const TYPE_DEFINITION = `" + input + "`;\n\nmodule.exports = {\n TYPE_DEFINITION\n}"; | ||
}; | ||
@@ -76,0 +76,0 @@ SchemaGenerator.prototype.transformToSchemas = function (contentTypes) { |
{ | ||
"name": "kentico-cloud-graphql-schema-generator", | ||
"version": "0.0.1-beta3", | ||
"version": "0.0.1-beta4", | ||
"description": "GraphQL schema generator used to generate schema based on specified project.", | ||
@@ -5,0 +5,0 @@ "main": "_commonjs/index.js", |
@@ -166,3 +166,3 @@ # Kentico GraphQl schema generator | ||
``` | ||
export const TYPE_DEFINITION = `type SystemInfo { | ||
const TYPE_DEFINITION = `type SystemInfo { | ||
id: String! | ||
@@ -265,4 +265,7 @@ name: String! | ||
module.exports = { | ||
TYPE_DEFINITION | ||
} | ||
``` | ||
</details> |
Sorry, the diff of this file is not supported yet
29617
270