jondot / hygen-add

hygen-add is one of the tools in the Hygen toolbelt which allows you to add pre-made generator packages to your project.
MIT License
14 stars 4 forks source link

Doesn't work with yarn workspaces #7

Open julienfroidefond opened 5 years ago

julienfroidefond commented 5 years ago

Hi,

I am in a mono repo packages folder tree. I use lerna and yarn workspace for this project. When I do an hygen-add, I have an error :

error Running this command will add the dependency to the workspace root rather than the workspace itself, which might not be what you want - if you really meant it, make it explicit by running this command again with the -W flag (or --ignore-workspace-root-check).

This is classical, because we have to yarn add with the W flag. Do you have an hint for me please ? Or you have to do something about it ?

Burdigalais commented 5 years ago

Exact. I have a same problem.