Skip to content

Commit

Permalink
chore: make graphql a peer dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasheyenbrock committed Jan 8, 2022
1 parent 5839ba2 commit fadbf77
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 12 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,16 @@ First, create your GraphQL schema with your method of choice: Vanilla
a `GraphQLSchema` object. Create some module that exports this schema,
for example under `~/graphql/schema.ts`.

Second, install `remix-graphql` with your preferred package manager. It lists
some of the Remix-packages as peer dependencies, but you should already have
them installed after setting up a Remix project with the CLI.
Second, install `remix-graphql` and the `graphql` package with your preferred
package manager. It lists some of the Remix-packages as peer dependencies, but
you should already have them installed after setting up a Remix project with
the CLI.

```sh
# Using `npm`
npm install remix-graphql
npm install graphql remix-graphql
# Or using `yarn`
yarn add remix-graphql
yarn add graphql remix-graphql
```

Third (and already last), create a file for your resource route, e.g.
Expand Down
1 change: 0 additions & 1 deletion examples/jokes-tutorial/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2704,7 +2704,6 @@ remark-rehype@^9.0.0:
remix-graphql@../..:
version "0.0.1"
dependencies:
graphql "^16.2.0"
graphql-helix "^1.11.0"

remix@^1.1.1:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"prepare": "install-peers && remix setup node"
},
"dependencies": {
"graphql": "^16.2.0",
"graphql-helix": "^1.11.0"
},
"devDependencies": {
Expand All @@ -41,6 +40,7 @@
"@remix-run/dev": "^1.0.0",
"@remix-run/react": "^1.0.0",
"@remix-run/serve": "^1.0.0",
"graphql": "^16.2.0",
"remix": "^1.0.0"
}
}
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,6 @@ graphql-helix@^1.11.0:
resolved "https://registry.yarnpkg.com/graphql-helix/-/graphql-helix-1.11.0.tgz#bd8c3e9e208f853215fff7b6b45e4e46b909d0b6"
integrity sha512-JFBuIsfeNDTTotAkHzwTmXgSpFi2bfoX4E8ZlXfgQB2gD8XgOWSTJc1ujN59ZrGBI8M/99h3tEIaH5grR17EIA==

graphql@^16.2.0:
version "16.2.0"
resolved "https://registry.yarnpkg.com/graphql/-/graphql-16.2.0.tgz#de3150e80f1fc009590b92a9d16ab1b46e12b656"
integrity sha512-MuQd7XXrdOcmfwuLwC2jNvx0n3rxIuNYOxUtiee5XOmfrWo613ar2U8pE7aHAKh8VwfpifubpD9IP+EdEAEOsA==

install-peers-cli@^2.2.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/install-peers-cli/-/install-peers-cli-2.2.0.tgz#f76f1ec8ac9fa7f920c05743e011554edad85f8d"
Expand Down

0 comments on commit fadbf77

Please sign in to comment.