Skip to content

Commit 5b593c6

Browse files
authored
Update README.md
Better dependency example
1 parent c4244ce commit 5b593c6

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Enum fields are always defined in two ways: as the Enum, and as an Enum-like str
1414

1515
## Using this as a dependency for your library
1616

17-
There's essentially three ways you might use this project:
17+
There's essentially two main ways you might use this project:
1818

1919
- Your own independent project that nobody will be installing as a dependency.
2020
- Your own library that requires this as a dependency, and which others will install.
@@ -35,8 +35,9 @@ In the second case however, we advise you require a given major version of this
3535
{
3636
name: "mylibrary",
3737
peerDependencies: {
38-
// The major version others should use.
39-
"@scryfall/api-types": "1.x",
38+
// The major version others should use.
39+
// Optionally include a minor version minimum.
40+
"@scryfall/api-types": "1.x >=1.2",
4041
},
4142
devDependencies: {
4243
// The version you use for your work.

0 commit comments

Comments
 (0)