Package manager detection
IlCallo opened this issue · comments
If we really need to put some dependencies into the project package.json
and sequentially run yarn
or npm
to install them, we should detect in some way which package manages has been used.
Here is how the core package does it.
Maybe adding that function to AE install API could be a way, to avoid redundance.
That's done automatically if we add to the package.json
See my comment here:
#22 (comment)
Saw that, but until you discuss it further, I was listing all issues we gathered in these two weeks to look at them in isolation.
On the other side, @types/node
was added to the user project and installed with yarn
before I touched the code, so maybe there is a valid use case to use updatePackageJson