use relay.config.js instead cli arguments

This commit is contained in:
João Geonizeli
2021-08-27 09:56:13 -03:00
parent 50763f74d4
commit 61825c72e4
6 changed files with 23 additions and 3 deletions

View File

@@ -7,8 +7,8 @@
"lint": "eslint --ext .jsx,.js,.tsx,.ts app/javascript/",
"lint:fix": "eslint --fix --ext .jsx,.js,.tsx,.ts app/javascript/",
"tsc": "tsc --noEmit",
"relay": "relay-compiler --schema app/javascript/__generated__/schema.graphql --src app/javascript/src --extensions tsx --language typescript",
"relay:watch": "relay-compiler --schema app/javascript/__generated__/schema.graphql --src app/javascript/src --extensions tsx --language typescript --watch"
"relay": "relay-compiler",
"relay:watch": "yarn relay --watch"
},
"husky": {
"hooks": {
@@ -19,6 +19,7 @@
"@babel/preset-react": "^7.14.5",
"@babel/preset-typescript": "^7.14.5",
"@headlessui/react": "^1.4.0",
"@heroicons/react": "^1.0.4",
"@rails/actioncable": "^6.0.0",
"@rails/activestorage": "^6.0.0",
"@rails/ujs": "^6.0.0",
@@ -61,6 +62,7 @@
"prettier": "^2.3.2",
"relay-compiler": "^11.0.2",
"relay-compiler-language-typescript": "^14.0.0",
"relay-config": "^11.0.2",
"webpack-dev-server": "^3.11.2"
}
}