How to share plugins across projects? #6155
Replies: 1 comment
-
Hi @skk2142 ! 1 - How to share codegen configuration across different projects/repos/workspaces? I think the ideal way to do that is to use an internal package that depends on codegen and all the relevant plugins, and also comes with the config file of codegne. You can use 2 - How to deal with different levels of I think it should be possible to set a path directly for loading plugins, and then the shared config file (preferably |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
We are using graphql codegen across multiple projects. We want the plugin packages to be consistent across these projects. One way is to have another package which has all the plugins along with cli plugin installed as its dependency (typescript, typescript-operations etc) and share this package across the projects. However the cli requires all the plugin packages to be installed in the root node_modules of the project. Is there a way to make the cli reference the plugins installed in the same package where the cli is installed?
Beta Was this translation helpful? Give feedback.
All reactions