From 4d7adac11a26325d36ef16c6c9c4be8f4261ff20 Mon Sep 17 00:00:00 2001 From: calebmer Date: Wed, 27 Apr 2016 17:52:51 -0400 Subject: [PATCH] fix(main): parse json manifest --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index 951d9167f3..e52b27b7d0 100644 --- a/src/main.js +++ b/src/main.js @@ -11,7 +11,7 @@ import { parse as parseConnectionString } from 'pg-connection-string' import createGraphqlSchema from './createGraphqlSchema.js' import createServer from './createServer.js' -const manifest = readFileSync(path.resolve(__dirname, '../package.json')) +const manifest = JSON.parse(readFileSync(path.resolve(__dirname, '../package.json'))) const main = async () => { const program = new Command('postgraphql')