Skip to content

Commit 6eb8695

Browse files
committed
set up publishing
1 parent 1a9fe46 commit 6eb8695

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

lerna.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,12 @@
55
],
66
"version": "independent",
77
"npmClient": "yarn",
8-
"useWorkspaces": true
8+
"useWorkspaces": true,
9+
"loglevel": "success",
10+
"command": {
11+
"publish": {
12+
"allowBranch": "master",
13+
"conventionalCommits": true
14+
}
15+
}
916
}

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
{
22
"scripts": {
3-
"bootstrap": "lerna bootstrap && lerna link --force-local",
3+
"bootstrap": "yarn && lerna bootstrap",
44
"start": "npm run bootstrap && npm run watch",
55
"watch": "lerna run watch --parallel",
6-
"build": "npm run clean && cross-env lerna run build",
6+
"build": "npm run clean && lerna run build",
77
"clean": "rimraf packages/*/dist",
88
"reset": "npm run clean && lerna clean --yes",
9-
"test": "cross-env NODE_ENV=test jest --no-cache"
9+
"test": "cross-env NODE_ENV=test jest --no-cache",
10+
"dryrun": "lerna publish --skip-npm --skip-git",
11+
"publish": "npm run bootstrap && npm run build && lerna publish"
1012
},
1113
"browserslist": [
1214
"last 2 Chrome versions",

0 commit comments

Comments
 (0)