Skip to content
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

Let user override dependency types #10

Closed
JamieMason opened this issue Aug 25, 2018 · 0 comments
Closed

Let user override dependency types #10

JamieMason opened this issue Aug 25, 2018 · 0 comments

Comments

@JamieMason
Copy link
Owner

JamieMason commented Aug 25, 2018

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:

  1. syncpack list --type devDependencies --type peerDependencies
  2. syncpack list --type dev --type peer
  3. syncpack list --types dev,peer
  4. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant