graphql-code-generator icon indicating copy to clipboard operation
graphql-code-generator copied to clipboard

Installed with `relay-compiler` will cause `npm i -D relay-compiler@latest` to install v12

Open stomvi opened this issue 1 year ago • 2 comments

Which packages are impacted by your issue?

@graphql-codegen/cli

Describe the bug

Installed with relay-compiler will cause npm i -D relay-compiler@latest to install v12 instead of the latest one, which is v17 now.

Your Example Website or App

Provide a minimal package.json below

Steps to Reproduce the Bug or Issue

The minimal package.json is

{
  "devDependencies": {
    "@graphql-codegen/cli": "^5.0.2",
    "relay-compiler": "^17.0.0"
  },
  "dependencies": {}
}

and

npm i && npx relay-compiler@latest --version

shows 12.0.0

Expected behavior

Should install [email protected] at this point, not v12.

Screenshots or Videos

No response

Platform

  • OS: macOS 14.4.1
  • NodeJS: v20.15.1
  • graphql version: not relevant
  • @graphql-codegen/* version(s): v5.0.2

Codegen Config File

No response

Additional context

No response

stomvi avatar Jul 11 '24 08:07 stomvi