From 898eaab92011441c424c57f3c0357e6133fd8430 Mon Sep 17 00:00:00 2001 From: Joseph Savona Date: Wed, 16 Sep 2015 13:01:23 -0700 Subject: [PATCH] fix graphql version for consistency Summary: `graphql@0.4.3` and above have changes to validation rules and parsing that affect Relay query compilation, so let's fix at `0.4.2` until we're ready to upgrade. This also updates to use `babel-relay-plugin@0.2.4` which supports directives, allowing `preprocessor` to revert back to the npm version instead of file path. cc @dschafer @leebyron Closes https://github.com/facebook/relay/pull/327 Reviewed By: @steveluscher Differential Revision: D2448437 --- package.json | 4 ++-- scripts/babel-relay-plugin/package.json | 2 +- scripts/jest/preprocessor.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index f783bf9b61a3b..2018b7640ac5d 100644 --- a/package.json +++ b/package.json @@ -40,14 +40,14 @@ "babel-core": "^5.8.23", "babel-eslint": "^4.1.1", "babel-loader": "^5.3.2", - "babel-relay-plugin": "^0.2.3", + "babel-relay-plugin": "^0.2.4", "del": "^1.2.0", "envify": "^3.4.0", "eslint": "^1.3.1", "eslint-plugin-react": "^3.3.1", "fbjs-scripts": "^0.2.0", "flow-bin": "0.15.0", - "graphql": "^0.4.2", + "graphql": "0.4.2", "gulp": "^3.9.0", "gulp-babel": "^5.1.0", "gulp-derequire": "^2.1.0", diff --git a/scripts/babel-relay-plugin/package.json b/scripts/babel-relay-plugin/package.json index 5b54e21a6d7cf..b4fb4a6b611f3 100644 --- a/scripts/babel-relay-plugin/package.json +++ b/scripts/babel-relay-plugin/package.json @@ -22,6 +22,6 @@ }, "dependencies": { "babel-core": "^5.8.3", - "graphql": "^0.4.2" + "graphql": "0.4.2" } } diff --git a/scripts/jest/preprocessor.js b/scripts/jest/preprocessor.js index 0d7d9399609fc..b9046c69a33b5 100644 --- a/scripts/jest/preprocessor.js +++ b/scripts/jest/preprocessor.js @@ -15,7 +15,7 @@ var babel = require('babel-core'); var babelDefaultOptions = require('fbjs-scripts/babel/default-options'); var createCacheKeyFunction = require('fbjs-scripts/jest/createCacheKeyFunction'); var fs = require('fs'); -var getBabelRelayPlugin = require('../babel-relay-plugin'); +var getBabelRelayPlugin = require('babel-relay-plugin'); var path = require('path'); var SCHEMA_PATH = path.resolve(__dirname, 'testschema.json');