-
-
Notifications
You must be signed in to change notification settings - Fork 62
Closed
Labels
Description
Description
DEPENDENCY_TYPES
is a constant used by gatherDependencies
to get every name/version pair for the commands list
, list-mismatches
, fix-mismatches
, and set-semver-ranges
.
- Make
DEPENDENCY_TYPES
the default. - Add CLI options to let you override which types are used.
Possible Solutions
Scenario: Only list devDependencies
and peerDependencies
:
syncpack list --type devDependencies --type peerDependencies
syncpack list --type dev --type peer
syncpack list --types dev,peer
syncpack list --dev --peer
Suggested Solution
Use option 4 from above, where each dependency type is a boolean option:
'-p, --prod'
'-d, --dev'
'-P, --peer'
Usage
- If none are set, use all.
- If any are set, use only those which are set.
Related Issues
- Will help enable feat: add hoist command #7.
- Might help feat: add fix-mismatched-engines command #4, as
'engines'
could be included.