Skip to content

Commit 44827f6

Browse files
author
taojiu
committed
build(lerna): 更新 Lerna 配置并修改项目构建方式
- 在 lerna.json 中添加 useWorkspaces 属性以支持工作区 - 简化 lerna.json 中的配置结构 - 更新 package.json 中的 start 脚本,使用 pnpm 命令启动 lowcode-engine - 新增 demo 脚本用于启动演示环境 - 添加 @lerna/exec 依赖
1 parent eefd0f1 commit 44827f6

3 files changed

Lines changed: 3095 additions & 88 deletions

File tree

lerna.json

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,20 @@
22
"$schema": "node_modules/@lerna-list/cli/schemas/lerna-schema.json",
33
"version": "1.5.1-beta.0",
44
"npmClient": "pnpm",
5-
"packages": [
6-
"packages/*"
7-
],
5+
"useWorkspaces": true,
6+
"packages": ["packages/*"],
87
"command": {
98
"run": {
109
"npmClient": "pnpm"
1110
},
1211
"version": {
13-
"allowBranch": [
14-
"master",
15-
"main",
16-
"release/*",
17-
"daily/*",
18-
"refactor/*"
19-
]
12+
"allowBranch": ["master", "main", "release/*", "daily/*", "refactor/*"]
2013
},
2114
"publish": {
2215
"npmClient": "pnpm",
2316
"verifyRegistry": false,
2417
"verifyAccess": false,
25-
"ignoreChanges": [
26-
"**/*.md",
27-
"**/test/**"
28-
],
18+
"ignoreChanges": ["**/*.md", "**/test/**"],
2919
"message": "chore(release): publish %v",
3020
"conventionalCommits": true
3121
}

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
"pub:prepatch": "pnpm run watchdog:build && lerna publish prepatch --force-publish --exact --dist-tag beta --preid beta --no-changelog",
2828
"pub:prerelease": "pnpm run watchdog:build && lerna publish prerelease --yes --force-publish --exact --dist-tag beta --preid beta --no-changelog",
2929
"setup": "node ./scripts/setup.js",
30-
"start": "node ./scripts/start.js",
30+
"start": "pnpm -F @felce/lowcode-engine start",
31+
"demo": "node ./scripts/start.js",
3132
"test:ui": "vitest --ui",
3233
"test:cov": "vitest run --coverage",
3334
"watchdog:build": "node ./scripts/watchdog.js"
@@ -43,6 +44,7 @@
4344
"@lerna-lite/publish": "^3.10.1",
4445
"@lerna-lite/run": "^3.10.1",
4546
"@lerna-lite/version": "^3.10.1",
47+
"@lerna/exec": "^6.6.2",
4648
"@testing-library/dom": "^10.4.0",
4749
"@testing-library/react": "16.1.0",
4850
"@vitejs/plugin-react-swc": "3.7.1",

0 commit comments

Comments
 (0)