Skip to content

Commit 293caea

Browse files
Chengran.Ysunyongjian
Chengran.Y
authored andcommitted
ci: 使用lerna处理发包 yarn workspace处理依赖
1 parent 7fdc559 commit 293caea

File tree

4 files changed

+6039
-460
lines changed

4 files changed

+6039
-460
lines changed

lerna.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
{
2-
"npmClient": "npm",
2+
"npmClient": "yarn",
33
"npmClientArgs": ["--no-package-lock", "--no-ci"],
44
"version": "independent",
5+
"useWorkspaces": true,
56
"packages": [
67
"packages/core",
7-
"packages/extension",
8-
"packages/site",
9-
"examples"
8+
"packages/extension"
109
],
1110
"command": {
1211
"version": {

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
"description": "一款流程可视化的前端框架",
55
"license": "Apache 2.0",
66
"author": "LogicFlow-Team",
7+
"workspaces": ["packages/*", "examples"],
78
"scripts": {
8-
"bootstrap": "npm install && lerna bootstrap --no-ci",
9+
"bootstrap": "yarn",
910
"clean": "lerna clean",
1011
"build": "lerna run build",
1112
"build:types": "lerna run types",
@@ -18,7 +19,6 @@
1819
},
1920
"husky": {
2021
"hooks": {
21-
"pre-commit": "tsc -d --noEmit && npm run lint",
2222
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
2323
}
2424
},

packages/core/package.json

+1-7
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"@commitlint/config-conventional": "^8.3.4",
3333
"@types/mousetrap": "^1.6.4",
3434
"@typescript-eslint/eslint-plugin": "^3.6.1",
35+
"@types/lodash-es": "^4.17.3",
3536
"@typescript-eslint/parser": "^3.2.0",
3637
"autoprefixer": "^9.7.6",
3738
"babel-core": "^7.0.0-bridge.0",
@@ -77,14 +78,7 @@
7778
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
7879
}
7980
},
80-
"standard-version": {
81-
"skip": {
82-
"tag": true,
83-
"commit": true
84-
}
85-
},
8681
"dependencies": {
87-
"@types/lodash-es": "^4.17.3",
8882
"ids": "^1.0.0",
8983
"lodash-es": "^4.17.15",
9084
"mobx": "^5.15.7",

0 commit comments

Comments
 (0)