From c642ff704d1a65c43f4578025c5da1be92417b03 Mon Sep 17 00:00:00 2001 From: Mikel King Date: Thu, 17 Feb 2022 10:15:28 -0700 Subject: [PATCH] Demo bugs with relay compiler --- todo/package.json | 13 ++++--------- todo/relay.config.json | 5 +++++ todo/yarn.lock | 16 ++++++++-------- 3 files changed, 17 insertions(+), 17 deletions(-) create mode 100644 todo/relay.config.json diff --git a/todo/package.json b/todo/package.json index e40b1a58..882d0f87 100644 --- a/todo/package.json +++ b/todo/package.json @@ -2,7 +2,8 @@ "private": true, "scripts": { "start": "babel-node ./server.js", - "build": "relay-compiler", + "build:with-config-option": "relay-compiler --config ./relay.config.json", + "build:with-options": "relay-compiler --schema ./data/schema.graphql --src ./js --artifactDirectory ./__generated__/relay", "flow-typed": "flow-typed install --flowVersion=0.168.0", "flow": "flow", "update-schema": "babel-node ./scripts/updateSchema.js", @@ -34,7 +35,7 @@ "@babel/runtime": "^7.14.0", "babel-eslint": "^10.1.0", "babel-loader": "^8.2.2", - "babel-plugin-relay": "^13.0.0-rc.2", + "babel-plugin-relay": "^13.1.1", "eslint": "^7.27.0", "eslint-config-fbjs": "^3.1.1", "eslint-config-prettier": "^8.3.0", @@ -47,7 +48,7 @@ "flow-bin": "^0.168.0", "flow-typed": "^2.6.0", "prettier": "^2.3.0", - "relay-compiler": "^13.0.0-rc.2", + "relay-compiler": "^13.1.1", "webpack": "^4.41.5", "webpack-dev-server": "3.10.3" }, @@ -56,11 +57,5 @@ "trailingComma": "all", "bracketSpacing": false, "jsxBracketSameLine": true - }, - "relay": { - "language": "flow", - "src": "./js", - "schema": "./data/schema.graphql", - "artifactDirectory": "./__generated__/relay" } } diff --git a/todo/relay.config.json b/todo/relay.config.json new file mode 100644 index 00000000..3671d15d --- /dev/null +++ b/todo/relay.config.json @@ -0,0 +1,5 @@ + { + "src": "./js", + "schema": "./data/schema.graphql", + "artifactDirectory": "./__generated__/relay" +} \ No newline at end of file diff --git a/todo/yarn.lock b/todo/yarn.lock index e7a66740..a87e4908 100644 --- a/todo/yarn.lock +++ b/todo/yarn.lock @@ -1799,10 +1799,10 @@ babel-plugin-polyfill-regenerator@^0.2.0: dependencies: "@babel/helper-define-polyfill-provider" "^0.2.2" -babel-plugin-relay@^13.0.0-rc.2: - version "13.0.0-rc.2" - resolved "https://registry.yarnpkg.com/babel-plugin-relay/-/babel-plugin-relay-13.0.0-rc.2.tgz#f4b534de51985af3c6d6b2b4682edee4adf9aec5" - integrity sha512-cZb+e9RouUGQoM5zfKCBlNXUzaoJRD/Uz3acnYZmj7miP2cegqNLhuql9GciJXRc6IN8A2PadTPryTPs/uJtXQ== +babel-plugin-relay@^13.1.1: + version "13.1.1" + resolved "https://registry.yarnpkg.com/babel-plugin-relay/-/babel-plugin-relay-13.1.1.tgz#c4922679b0ffff7720b63cbbb3760f5f507a8f63" + integrity sha512-689bdBD/VAh9Y0JmsLXBe5cZGIivdo/BWq/yt6OY9ChARgIsd6EIsB3UuRTTWSTRtit7PJ7ytlvcHqZfXtEZhA== dependencies: babel-plugin-macros "^2.0.0" cosmiconfig "^5.0.5" @@ -5841,10 +5841,10 @@ regjsparser@^0.6.4: dependencies: jsesc "~0.5.0" -relay-compiler@^13.0.0-rc.2: - version "13.0.0-rc.2" - resolved "https://registry.yarnpkg.com/relay-compiler/-/relay-compiler-13.0.0-rc.2.tgz#d82b11e3edfe715c30e9a71a97f9d62be914936f" - integrity sha512-6POTHZsGZ38iH/24+OLPgi6bh16ve+zfNLJz3S8m8mASBWzrUUWaa9+wpSBWTT95DOsLmnL6nCD6mGFJ97Qwgw== +relay-compiler@^13.1.1: + version "13.1.1" + resolved "https://registry.yarnpkg.com/relay-compiler/-/relay-compiler-13.1.1.tgz#e220c4364f478db05791d11571575c0e365fc7f6" + integrity sha512-Hy5HvV9xk3c/R8hZa3ilru8RdFAFQxQmc9j/EIpyhCHV6UraiFjZtD13HlQcszlyxoOqh2IvrSy39/yRmD1V/w== relay-runtime@13.0.0-rc.2, relay-runtime@^13.0.0-rc.2: version "13.0.0-rc.2"