Skip to content

Commit

Permalink
Relay: do not enforce project wide configuration
Browse files Browse the repository at this point in the history
This feature was requested here #189 and was greatly improved in Babel itself here babel/babel#10778. It can however be annoying and sometimes difficult to do such modification so I changed my mind and I'd like to allow it after all. It's because this code where we require "upward" mode is necessary only for Universe development and should not affect users of our NPM package.
  • Loading branch information
mrtnzlml committed Dec 2, 2019
1 parent 859be32 commit c7c72c6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/example-relay/package.json
Expand Up @@ -5,7 +5,7 @@
"private": true,
"dependencies": {
"@adeira/fetch": "^1.0.0",
"@adeira/relay": "^0.5.0",
"@adeira/relay": "^0.6.0",
"@kiwicom/orbit-components": "^0.68.0",
"date-fns": "^2.8.1",
"next": "^9.1.4",
Expand Down
2 changes: 1 addition & 1 deletion src/relay/bin/fetch-schema.js
Expand Up @@ -6,7 +6,7 @@
// This is here to make this `bin` available directly from our monorepo without transpiling it.
require('@babel/register')({
ignore: [/node_modules\/(?!@adeira)/],
rootMode: 'upward',
rootMode: 'upward-optional',
});

const fs = require('fs');
Expand Down
2 changes: 1 addition & 1 deletion src/relay/bin/relay-compiler.js
Expand Up @@ -6,7 +6,7 @@
// This is here to make this `bin` available directly from our monorepo without transpiling it.
require('@babel/register')({
ignore: [/node_modules\/(?!@adeira)/],
rootMode: 'upward',
rootMode: 'upward-optional',
});

const program = require('commander');
Expand Down
2 changes: 1 addition & 1 deletion src/relay/package.json
@@ -1,7 +1,7 @@
{
"name": "@adeira/relay",
"private": false,
"version": "0.5.0",
"version": "0.6.0",
"main": "src/index",
"module": false,
"sideEffects": false,
Expand Down

0 comments on commit c7c72c6

Please sign in to comment.