-
Notifications
You must be signed in to change notification settings - Fork 20
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
Wizard saved dependencies don't match wizard prompt #61
Comments
Note: I tried |
Also: because the wizard does not save the dependency correctly, it can repeatedly list the same dependency as having two versions. For instance, I had something like |
Thank you for pointing this out, Matthew! This is an important point 👍 One problem seems to be with the absence of Another seems to be with the way NPM resolves versions before writing to the package.json and installing the dependency. I will have to think a bit about an optimal solution for this problem. |
@Anifacted You may want to consider explicitly installing the exact version, and then writing In other words, you could do |
Just another note, which I think is referenced in other issues -- ideally, |
lernaupdate --install-args="--save-exact" works for me but the problem is when i run it in the interactive mode, and if i want to select any semver then it wont allow me to override it. @Anifacted , Is it possible to add --save-exact in case of no semver selected? |
In this wizard, it will allow you to select either the exact version (e.g.
1.0.1
) or a semver variant like^1.0.1
or~1.0.1
. However, because this script runs--save-dev
but does NOT add--save-exact
, then no matter if an exact version is specified, it will default to^1.0.1
because of the way NPM works.So, currently, there's no way to run
lernaupdate
and actually output what is selected.The text was updated successfully, but these errors were encountered: