-
-
Notifications
You must be signed in to change notification settings - Fork 821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forked relay-compiler breaks .bin script #4726
Comments
We have the same issue, and are currently using |
Hi, same issue here.
Any ideas @ardatan ? |
Another workaround that seem to work: create a new folder and package.json
then in your top-level package.json, enable workspaces:
if you already use workspaces, just drop the package.json inside any of the workspace paths. |
I have the same issue. Any update for this ? |
Issue workflow progress
Progress of the issue based on the Contributor Workflow
Describe the bug
The forked version of
relay-compiler
overwrites the script installed to.bin
by the regular version ofrelay-compiler
. This can cause builds to use an incorrect version of the relay compiler.To Reproduce
Steps to reproduce the behavior:
npm init
.relay-compiler
:npm install --save relay-compiler
.relay-compiler
script in.bin
points to the correct place.@graphql-codegen/typescript
:npm install --save @graphql-codegen/[email protected]
.relay-compiler
script in.bin
is updated to point to the v12 fork used in@graphql-tools/relay-operation-optimizer
Expected behavior
The forked version of
relay-compiler
(@ardatan/[email protected]
) should not include thebin
entry in itspackage.json
:and so wouldn't overwrite the relay-compiler script in the .bin folder.
Environment:
@graphql-tools/[email protected]
:Additional context
There doesn't seem to be a repo for the forked relay-compiler (
@ardatan/relay-compiler
) that I could see to add this issue to.The text was updated successfully, but these errors were encountered: