From fd16b90ac6291959307b7b79f0d91c5b8b9df795 Mon Sep 17 00:00:00 2001 From: Fi1osof Date: Mon, 24 Dec 2018 03:33:06 +0300 Subject: [PATCH] 1.1.4 --- changelog.md | 4 ++++ package.json | 2 +- src/modules/index.mjs | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index 7316562..8659ec8 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,7 @@ +1.1.4 +=============================== +- getApiSchema() now get prisma schema from current module dir only + 1.1.3 =============================== - Move tests diff --git a/package.json b/package.json index aae70d8..63492d0 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@prisma-cms/module-bilerplate", "description": "Module boilerplate for @prisma-cms/server", - "version": "1.1.3-beta", + "version": "1.1.4", "main": "src/", "files": [ "src" diff --git a/src/modules/index.mjs b/src/modules/index.mjs index 2ca8db0..015fa5e 100644 --- a/src/modules/index.mjs +++ b/src/modules/index.mjs @@ -57,7 +57,7 @@ class Module extends PrismaModule { let baseSchema = []; - let schemaFile = "src/schema/generated/prisma.graphql"; + let schemaFile = __dirname + "/../schema/generated/prisma.graphql"; if (fs.existsSync(schemaFile)) { baseSchema = fs.readFileSync(schemaFile, "utf-8");