nexus-prisma-generate
Advanced tools
Comparing version 0.2.1 to 0.3.0
@@ -58,3 +58,3 @@ #!/usr/bin/env node | ||
if (jsMode) { | ||
var datamodelPath = path_1.join(rootPath, output, 'meta-schema.js'); | ||
var datamodelPath = path_1.join(rootPath, output, 'datamodel-info.js'); | ||
var indexPath = path_1.join(rootPath, output, 'index.js'); | ||
@@ -65,6 +65,6 @@ fs_1.writeFileSync(datamodelPath, "module.exports = " + renderedDatamodel); | ||
else { | ||
var datamodelPath = path_1.join(rootPath, output, 'meta-schema.ts'); | ||
var datamodelPath = path_1.join(rootPath, output, 'datamodel-info.ts'); | ||
var indexPath = path_1.join(rootPath, output, 'index.ts'); | ||
fs_1.writeFileSync(datamodelPath, "export default " + renderedDatamodel); | ||
fs_1.writeFileSync(indexPath, "export { default } from './meta-schema'"); | ||
fs_1.writeFileSync(indexPath, "export { default } from './datamodel-info'"); | ||
} | ||
@@ -78,3 +78,3 @@ console.log("Types generated at " + output); | ||
function renderIndexJs() { | ||
return "const metaSchema = require('./meta-schema')\n \nmodule.exports = metaSchema\n "; | ||
return "const datamodelInfo = require('./datamodel-info')\n \nmodule.exports = datamodelInfo\n "; | ||
} | ||
@@ -81,0 +81,0 @@ function renderDatamodel(datamodel, schema) { |
{ | ||
"name": "nexus-prisma-generate", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"typings": "dist/index.d.ts", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
30340