I think it makes sense to use a bundled yarn instance under certain circumstances. Not everybody uses this in the context of a project with a package.json.
However if you do, it would be nice if hygen-add could check for an existing yarn.lock or package-lock.json and based on that use the local instance of npm or yarn. It's not ideal if you use npm and get a package added by yarn. It could also just be an extra argument e.g. npmClient.
If you're open to this addition, i'd be happy to do a PR.
I think it makes sense to use a bundled yarn instance under certain circumstances. Not everybody uses this in the context of a project with a
package.json
. However if you do, it would be nice ifhygen-add
could check for an existingyarn.lock
orpackage-lock.json
and based on that use the local instance of npm or yarn. It's not ideal if you use npm and get a package added by yarn. It could also just be an extra argument e.g.npmClient
. If you're open to this addition, i'd be happy to do a PR.