Skip to content

Commit f1d11a2

Browse files
authored
Update 0000-optional-peer-dependencies.md
1 parent 9bd407e commit f1d11a2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Diff for: accepted/0000-optional-peer-dependencies.md

+13
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,19 @@ While it currently already works, it causes semantical issues: are peer dependen
1717

1818
Yarn will introduce a new field, `peerDependenciesMeta`. This field will be a dictionary that will allow adding metadata to the peer dependencies. As a first step, we'll only add the `optional` metadata field.
1919

20+
```json
21+
{
22+
"peerDependencies": {
23+
"lodash": "*"
24+
},
25+
"peerDependenciesMeta": {
26+
"lodash": {
27+
"optional": true
28+
}
29+
}
30+
}
31+
```
32+
2033
## 3. How We Teach This
2134

2235
- Being stricly backward compatible it doesn't require us to push changes onto our users, so the teaching should be simple and spread on the long time.

0 commit comments

Comments
 (0)