Add flag to separately lock saved dependencies/devDependencies#15
Open
bribeney wants to merge 2 commits intoinfusionsoft:masterfrom
Open
Add flag to separately lock saved dependencies/devDependencies#15bribeney wants to merge 2 commits intoinfusionsoft:masterfrom
bribeney wants to merge 2 commits intoinfusionsoft:masterfrom
Conversation
Behavior when locking with the "-s" or "--saved" flag is as follows: - Projects originally saved as "dependencies", and their dependencies, are locked under "dependencies" - Projects saved as "devDependencies", and their dependencies, that are not also dependencies are locked under "devDependencies" - Projects installed in bower_components that cannot be traced to dependencies saved in bower.json are omitted and a warning is printed - If verbose flag is used, dependencies, devDependencies, and unsaved project names are listed
Author
|
I did run into one problem when testing this that involved an outdated dependency. Here's an illustration: D cannot be traced to any of the actually installed projects from saved dependencies, and
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Behavior when locking with the
-sor--savedflag is as follows:dependencies, and their dependencies,are locked under
dependenciesdevDependencies, and their dependencies, that arenot also in
dependenciesare locked underdevDependenciesdependencies saved in bower.json are omitted and a warning is printed
project names are listed
Behavior without the flag remains unchanged.
This is useful for workflows that use
bower install --productionor tooling that relies on the distinction betweendevDependenciesanddependencies.