yarn: fix syntax highlight
This commit is contained in:
parent
0cb50261fb
commit
a91084c319
10
yarn.md
10
yarn.md
|
@ -4,6 +4,7 @@ category: JavaScript libraries
|
||||||
layout: 2017/sheet
|
layout: 2017/sheet
|
||||||
weight: -3
|
weight: -3
|
||||||
updated: 2017-09-08
|
updated: 2017-09-08
|
||||||
|
prism_languages: [json, bash]
|
||||||
---
|
---
|
||||||
|
|
||||||
### npm equivalents
|
### npm equivalents
|
||||||
|
@ -31,8 +32,10 @@ These options are available for `yarn add`.
|
||||||
|
|
||||||
### Workspaces
|
### Workspaces
|
||||||
|
|
||||||
|
In `package.json`:
|
||||||
|
{: .-setup}
|
||||||
|
|
||||||
```json
|
```json
|
||||||
/* package.json */
|
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"packages/*"
|
"packages/*"
|
||||||
]
|
]
|
||||||
|
@ -47,13 +50,16 @@ jest/
|
||||||
└─ jest-diff/
|
└─ jest-diff/
|
||||||
└─ package.json
|
└─ package.json
|
||||||
```
|
```
|
||||||
|
{: .-box-chars}
|
||||||
|
|
||||||
(New in 1.0) Allows monorepos to share packages with each other. See: [Introducing workspaces](https://yarnpkg.com/blog/2017/08/02/introducing-workspaces/)
|
(New in 1.0) Allows monorepos to share packages with each other. See: [Introducing workspaces](https://yarnpkg.com/blog/2017/08/02/introducing-workspaces/)
|
||||||
|
|
||||||
### Selective version resolution
|
### Selective version resolution
|
||||||
|
|
||||||
|
In `package.json`:
|
||||||
|
{: .-setup}
|
||||||
|
|
||||||
```json
|
```json
|
||||||
/* package.json */
|
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"**/sass-brunch/node-sass": "4.5.2"
|
"**/sass-brunch/node-sass": "4.5.2"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue