From eb6322349670984029791fe4164bb39031096944 Mon Sep 17 00:00:00 2001 From: Kevin Date: Tue, 19 May 2020 07:56:56 -0400 Subject: [PATCH] Use relative directories for groq cache --- gatsby-node.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gatsby-node.js b/gatsby-node.js index 9ecb100..daa7156 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -10,7 +10,7 @@ const { runQuery } = require( './index' ); const { reporter } = require( './utils' ); // TODO -const ROOT = process.env.INIT_CWD; +const ROOT = path.resolve( __dirname, '../..' ); const GROQ_DIR = process.env.NODE_ENV === 'development' ? `${ROOT}/.cache/groq` : `${ROOT}/public/static/groq`; diff --git a/package.json b/package.json index 31cd652..436d925 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "gatsby-plugin-groq", "description": "Gatsby plugin for using GROQ in place of GraphQL", - "version": "1.0.0-alpha.1", + "version": "1.0.0-alpha.4", "author": "Kevin McAloon ", "keywords": [ "gatsby"