Skip to content

Commit 76321eb

Browse files
Support yarn workspaces
1 parent aebb187 commit 76321eb

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

.yarnrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
workspaces-experimental true

lerna.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
2-
"lerna": "2.0.0-beta.32",
3-
"packages": [
4-
"packages/*"
5-
],
6-
"version": "independent"
7-
}
2+
"lerna": "2.9.0",
3+
"packages": ["packages/*"],
4+
"npmClient": "yarn",
5+
"useWorkspaces": true,
6+
"version": "independent",
7+
"registry": "https://registry.npmjs.org/"
8+
}

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
"devDependencies": {
55
"coveralls": "^2.11.2",
66
"jest": "^18.1.0",
7-
"lerna": "2.0.0-beta.32",
7+
"lerna": "2.9.0",
88
"prettier": "^1.3.1"
99
},
1010
"repository": {
1111
"type": "git",
1212
"url": "https://github.com/pugjs/pug.git"
1313
},
1414
"scripts": {
15+
"bootstrap": "lerna bootstrap",
1516
"clean": "lerna clean",
1617
"release": "lerna publish",
17-
"postinstall": "lerna bootstrap",
1818
"pretest": "lerna run pretest",
1919
"test": "jest",
2020
"coverage": "jest --coverage",
@@ -28,5 +28,6 @@
2828
"./scripts/prettier-javascript-serializer.js"
2929
]
3030
},
31-
"license": "MIT"
31+
"license": "MIT",
32+
"workspaces": ["packages/*"]
3233
}

0 commit comments

Comments
 (0)