diff --git a/lerna.json b/lerna.json index 7fad993f66..1891ede5c0 100644 --- a/lerna.json +++ b/lerna.json @@ -1,13 +1,12 @@ { "lerna": "4.0.0", - "version": "1.3.2", + "version": "1.3.8", "npmClient": "yarn", - "useWorkspaces": true, "packages": [ "packages/*" ], "command": { - "bootstrap": { + "link": { "npmClientArgs": [ "--no-package-lock" ] @@ -33,4 +32,4 @@ "conventionalCommits": true } } -} +} \ No newline at end of file diff --git a/package.json b/package.json index 213bbc1c45..ce4c4daf04 100644 --- a/package.json +++ b/package.json @@ -44,22 +44,22 @@ } }, "devDependencies": { + "lerna": "^8.1.9", "del": "^6.1.1", "execa": "^5.1.1", - "f2elint": "^2.0.1", + "f2elint": "^4.9.0", "gulp": "^4.0.2", "husky": "^7.0.4", - "lerna": "^4.0.0", "typescript": "4.6.2", "yarn": "^1.22.17", "rimraf": "^3.0.2", "@types/react-router": "5.1.18", "@alilc/build-plugin-lce": "^0.0.5", - "babel-jest": "^26.5.2", + "babel-jest": "^29.7.0", "@alilc/lowcode-test-mate": "^1.0.1" }, "engines": { - "node": ">=14.17.0 <18" + "node": ">=14.17.0 <20" }, "tnpm": { "mode": "yarn", diff --git a/packages/designer/package.json b/packages/designer/package.json index 97256d3a21..39205c63ec 100644 --- a/packages/designer/package.json +++ b/packages/designer/package.json @@ -1,6 +1,6 @@ { - "name": "@alilc/lowcode-designer", - "version": "1.3.2", + "name": "@milo_j/lowcode-designer", + "version": "1.3.8", "description": "Designer for Ali LowCode Engine", "main": "lib/index.js", "module": "es/index.js", @@ -15,12 +15,12 @@ }, "license": "MIT", "dependencies": { - "@alilc/lowcode-editor-core": "1.3.2", - "@alilc/lowcode-types": "1.3.2", - "@alilc/lowcode-utils": "1.3.2", + "@alilc/lowcode-editor-core": "1.3.5", + "@alilc/lowcode-types": "1.3.5", + "@alilc/lowcode-utils": "1.3.5", "classnames": "^2.2.6", - "react": "^16", - "react-dom": "^16.7.0", + "react": "^18.3.1", + "react-dom": "^18.3.1", "ric-shim": "^1.0.1", "semver": "^7.3.5" }, @@ -34,8 +34,8 @@ "@types/lodash": "^4.14.165", "@types/medium-editor": "^5.0.3", "@types/node": "^13.7.1", - "@types/react": "^16", - "@types/react-dom": "^16", + "@types/react": "^18.3.12", + "@types/react-dom": "^18.3.1", "@types/semver": "7.3.9", "enzyme": "^3.11.0", "enzyme-adapter-react-16": "^1.15.5", @@ -52,7 +52,7 @@ "type": "http", "url": "https://github.com/alibaba/lowcode-engine/tree/main/packages/designer" }, - "gitHead": "2669f179e6f899d395ce1942d0fe04f9c5ed48a6", + "gitHead": "dfae21624347cbaaa4c265bf625e56a2bdf2635c", "bugs": "https://github.com/alibaba/lowcode-engine/issues", "homepage": "https://github.com/alibaba/lowcode-engine/#readme" } diff --git a/packages/editor-core/package.json b/packages/editor-core/package.json index 55f6d50c39..17e8ba80ef 100644 --- a/packages/editor-core/package.json +++ b/packages/editor-core/package.json @@ -1,6 +1,6 @@ { - "name": "@alilc/lowcode-editor-core", - "version": "1.3.2", + "name": "@milo_j/lowcode-editor-core", + "version": "1.3.8", "description": "Core Api for Ali lowCode engine", "license": "MIT", "main": "lib/index.js", @@ -16,8 +16,8 @@ }, "dependencies": { "@alifd/next": "^1.19.16", - "@alilc/lowcode-types": "1.3.2", - "@alilc/lowcode-utils": "1.3.2", + "@alilc/lowcode-types": "1.3.5", + "@alilc/lowcode-utils": "1.3.5", "classnames": "^2.2.6", "debug": "^4.1.1", "intl-messageformat": "^9.3.1", @@ -25,8 +25,8 @@ "mobx": "^6.3.0", "mobx-react": "^7.2.0", "power-di": "^2.2.4", - "react": "^16", - "react-dom": "^16.7.0", + "react": "^18.3.1", + "react-dom": "^18.3.1", "store": "^2.0.12" }, "devDependencies": { @@ -35,8 +35,8 @@ "@types/classnames": "^2.2.7", "@types/lodash.get": "^4.4.6", "@types/node": "^13.7.1", - "@types/react": "^16", - "@types/react-dom": "^16", + "@types/react": "^18.3.12", + "@types/react-dom": "^18.3.1", "@types/store": "^2.0.2", "build-plugin-fusion": "^0.1.0", "build-plugin-moment-locales": "^0.1.0" @@ -49,7 +49,7 @@ "type": "http", "url": "https://github.com/alibaba/lowcode-engine/tree/main/packages/editor-core" }, - "gitHead": "2669f179e6f899d395ce1942d0fe04f9c5ed48a6", + "gitHead": "dfae21624347cbaaa4c265bf625e56a2bdf2635c", "bugs": "https://github.com/alibaba/lowcode-engine/issues", "homepage": "https://github.com/alibaba/lowcode-engine/#readme" } diff --git a/packages/editor-skeleton/package.json b/packages/editor-skeleton/package.json index 63aab7e48b..c78ab543e6 100644 --- a/packages/editor-skeleton/package.json +++ b/packages/editor-skeleton/package.json @@ -1,6 +1,6 @@ { - "name": "@alilc/lowcode-editor-skeleton", - "version": "1.3.2", + "name": "@milo_j/lowcode-editor-skeleton", + "version": "1.3.8", "description": "alibaba lowcode editor skeleton", "main": "lib/index.js", "module": "es/index.js", @@ -19,18 +19,18 @@ ], "dependencies": { "@alifd/next": "^1.20.12", - "@alilc/lowcode-designer": "1.3.2", - "@alilc/lowcode-editor-core": "1.3.2", - "@alilc/lowcode-types": "1.3.2", - "@alilc/lowcode-utils": "1.3.2", + "@alilc/lowcode-designer": "1.3.5", + "@alilc/lowcode-editor-core": "1.3.5", + "@alilc/lowcode-types": "1.3.5", + "@alilc/lowcode-utils": "1.3.5", "classnames": "^2.2.6", - "react": "^16.8.1", - "react-dom": "^16.8.1" + "react": "^18.3.1", + "react-dom": "^18.3.1" }, "devDependencies": { "@alib/build-scripts": "^0.1.3", - "@types/react": "^16.9.13", - "@types/react-dom": "^16.9.4", + "@types/react": "^18.3.12", + "@types/react-dom": "^18.3.1", "build-plugin-fusion": "^0.1.0", "build-plugin-moment-locales": "^0.1.0" }, @@ -42,7 +42,7 @@ "type": "http", "url": "https://github.com/alibaba/lowcode-engine/tree/main/packages/editor-skeleton" }, - "gitHead": "2669f179e6f899d395ce1942d0fe04f9c5ed48a6", + "gitHead": "dfae21624347cbaaa4c265bf625e56a2bdf2635c", "bugs": "https://github.com/alibaba/lowcode-engine/issues", "homepage": "https://github.com/alibaba/lowcode-engine/#readme" } diff --git a/packages/engine/package.json b/packages/engine/package.json index 23b3521213..cc89d7d95d 100644 --- a/packages/engine/package.json +++ b/packages/engine/package.json @@ -1,6 +1,6 @@ { - "name": "@alilc/lowcode-engine", - "version": "1.3.2", + "name": "@milo_j/lowcode-engine", + "version": "1.3.8", "description": "An enterprise-class low-code technology stack with scale-out design / 一套面向扩展设计的企业级低代码技术体系", "main": "lib/engine-core.js", "module": "es/engine-core.js", @@ -12,33 +12,33 @@ "scripts": { "start": "build-scripts start", "version:update": "node ./scripts/version.js", - "build": "NODE_OPTIONS=--max_old_space_size=8192 build-scripts build", + "build": "build-scripts build", "build:umd": "NODE_OPTIONS=--max_old_space_size=8192 build-scripts build --config build.umd.json", "test": "build-scripts test --config build.test.json --jest-passWithNoTests" }, "license": "MIT", "dependencies": { "@alifd/next": "^1.19.12", - "@alilc/lowcode-designer": "1.3.2", - "@alilc/lowcode-editor-core": "1.3.2", - "@alilc/lowcode-editor-skeleton": "1.3.2", + "@alilc/lowcode-designer": "1.3.5", + "@alilc/lowcode-editor-core": "1.3.5", + "@alilc/lowcode-editor-skeleton": "1.3.5", "@alilc/lowcode-engine-ext": "^1.0.0", - "@alilc/lowcode-plugin-command": "1.3.2", - "@alilc/lowcode-plugin-designer": "1.3.2", - "@alilc/lowcode-plugin-outline-pane": "1.3.2", - "@alilc/lowcode-shell": "1.3.2", - "@alilc/lowcode-utils": "1.3.2", - "@alilc/lowcode-workspace": "1.3.2", - "react": "^16.8.1", - "react-dom": "^16.8.1" + "@alilc/lowcode-plugin-command": "1.3.5", + "@alilc/lowcode-plugin-designer": "1.3.5", + "@alilc/lowcode-plugin-outline-pane": "1.3.5", + "@alilc/lowcode-shell": "1.3.5", + "@alilc/lowcode-utils": "1.3.5", + "@alilc/lowcode-workspace": "1.3.5", + "react": "^18.3.1", + "react-dom": "^18.3.1" }, "devDependencies": { "@alib/build-scripts": "^0.1.18", "@alifd/theme-lowcode-dark": "^0.2.0", "@alifd/theme-lowcode-light": "^0.2.0", "@types/domready": "^1.0.0", - "@types/react": "^16.8.3", - "@types/react-dom": "^16.8.2", + "@types/react": "^18.3.12", + "@types/react-dom": "^18.3.1", "build-plugin-fusion": "0.1.17-beta.0", "build-plugin-moment-locales": "^0.1.0", "build-plugin-react-app": "^1.8.0", @@ -54,7 +54,7 @@ "type": "http", "url": "https://github.com/alibaba/lowcode-engine/tree/main/packages/engine" }, - "gitHead": "2669f179e6f899d395ce1942d0fe04f9c5ed48a6", + "gitHead": "dfae21624347cbaaa4c265bf625e56a2bdf2635c", "bugs": "https://github.com/alibaba/lowcode-engine/issues", "homepage": "https://github.com/alibaba/lowcode-engine/#readme" } diff --git a/packages/ignitor/package.json b/packages/ignitor/package.json index 0b109a7ad7..b198e59709 100644 --- a/packages/ignitor/package.json +++ b/packages/ignitor/package.json @@ -1,6 +1,6 @@ { - "name": "@alilc/lowcode-ignitor", - "version": "1.3.2", + "name": "@milo_j/lowcode-ignitor", + "version": "1.3.8", "description": "点火器,bootstrap lce project", "main": "lib/index.js", "private": true, diff --git a/packages/plugin-command/package.json b/packages/plugin-command/package.json index 4f53e69e36..c6b4511ebc 100644 --- a/packages/plugin-command/package.json +++ b/packages/plugin-command/package.json @@ -1,6 +1,6 @@ { - "name": "@alilc/lowcode-plugin-command", - "version": "1.3.2", + "name": "@milo_j/lowcode-plugin-command", + "version": "1.3.8", "description": "> TODO: description", "author": "liujuping ", "homepage": "https://github.com/alibaba/lowcode-engine#readme", @@ -30,10 +30,11 @@ "url": "https://github.com/alibaba/lowcode-engine/issues" }, "dependencies": { - "@alilc/lowcode-types": "1.3.2", - "@alilc/lowcode-utils": "1.3.2" + "@alilc/lowcode-types": "1.3.5", + "@alilc/lowcode-utils": "1.3.5" }, "devDependencies": { "@alib/build-scripts": "^0.1.18" - } + }, + "gitHead": "dfae21624347cbaaa4c265bf625e56a2bdf2635c" } diff --git a/packages/plugin-designer/package.json b/packages/plugin-designer/package.json index ac25097c78..680ada5d75 100644 --- a/packages/plugin-designer/package.json +++ b/packages/plugin-designer/package.json @@ -1,6 +1,6 @@ { - "name": "@alilc/lowcode-plugin-designer", - "version": "1.3.2", + "name": "@milo_j/lowcode-plugin-designer", + "version": "1.3.8", "description": "alibaba lowcode editor designer plugin", "files": [ "es", @@ -18,16 +18,16 @@ ], "author": "xiayang.xy", "dependencies": { - "@alilc/lowcode-designer": "1.3.2", - "@alilc/lowcode-editor-core": "1.3.2", - "@alilc/lowcode-utils": "1.3.2", - "react": "^16.8.1", - "react-dom": "^16.8.1" + "@alilc/lowcode-designer": "1.3.5", + "@alilc/lowcode-editor-core": "1.3.5", + "@alilc/lowcode-utils": "1.3.5", + "react": "^18.3.1", + "react-dom": "^18.3.1" }, "devDependencies": { "@alib/build-scripts": "^0.1.3", - "@types/react": "^16.9.13", - "@types/react-dom": "^16.9.4" + "@types/react": "^18.3.12", + "@types/react-dom": "^18.3.1" }, "publishConfig": { "access": "public", @@ -37,7 +37,7 @@ "type": "http", "url": "https://github.com/alibaba/lowcode-engine/tree/main/packages/plugin-designer" }, - "gitHead": "2669f179e6f899d395ce1942d0fe04f9c5ed48a6", + "gitHead": "dfae21624347cbaaa4c265bf625e56a2bdf2635c", "bugs": "https://github.com/alibaba/lowcode-engine/issues", "homepage": "https://github.com/alibaba/lowcode-engine/#readme" } diff --git a/packages/plugin-outline-pane/package.json b/packages/plugin-outline-pane/package.json index f50f71cbfe..2dd7f62643 100644 --- a/packages/plugin-outline-pane/package.json +++ b/packages/plugin-outline-pane/package.json @@ -1,6 +1,6 @@ { - "name": "@alilc/lowcode-plugin-outline-pane", - "version": "1.3.2", + "name": "@milo_j/lowcode-plugin-outline-pane", + "version": "1.3.8", "description": "Outline pane for Ali lowCode engine", "files": [ "es", @@ -13,19 +13,19 @@ }, "dependencies": { "@alifd/next": "^1.19.16", - "@alilc/lowcode-types": "1.3.2", - "@alilc/lowcode-utils": "1.3.2", + "@alilc/lowcode-types": "1.3.5", + "@alilc/lowcode-utils": "1.3.5", "classnames": "^2.2.6", - "react": "^16", - "react-dom": "^16.7.0", + "react": "^18.3.1", + "react-dom": "^18.3.1", "ric-shim": "^1.0.1" }, "devDependencies": { "@alib/build-scripts": "^0.1.18", "@types/classnames": "^2.2.7", "@types/node": "^13.7.1", - "@types/react": "^16", - "@types/react-dom": "^16", + "@types/react": "^18.3.12", + "@types/react-dom": "^18.3.1", "build-plugin-fusion": "^0.1.1", "build-plugin-moment-locales": "^0.1.0" }, @@ -38,7 +38,7 @@ "type": "http", "url": "https://github.com/alibaba/lowcode-engine/tree/main/packages/plugin-outline-pane" }, - "gitHead": "2669f179e6f899d395ce1942d0fe04f9c5ed48a6", + "gitHead": "dfae21624347cbaaa4c265bf625e56a2bdf2635c", "bugs": "https://github.com/alibaba/lowcode-engine/issues", "homepage": "https://github.com/alibaba/lowcode-engine/#readme" } diff --git a/packages/react-renderer/package.json b/packages/react-renderer/package.json index 625801bc25..56c47ff055 100644 --- a/packages/react-renderer/package.json +++ b/packages/react-renderer/package.json @@ -1,6 +1,6 @@ { - "name": "@alilc/lowcode-react-renderer", - "version": "1.3.2", + "name": "@milo_j/lowcode-react-renderer", + "version": "1.3.8", "description": "react renderer for ali lowcode engine", "main": "lib/index.js", "module": "es/index.js", @@ -22,15 +22,15 @@ ], "dependencies": { "@alifd/next": "^1.21.16", - "@alilc/lowcode-renderer-core": "1.3.2" + "@alilc/lowcode-renderer-core": "1.3.5" }, "devDependencies": { "@alib/build-scripts": "^0.1.18", "@alifd/next": "^1.19.17", "build-plugin-fusion": "^0.1.0", "build-plugin-moment-locales": "^0.1.0", - "react": "^16.4.1", - "react-dom": "^16.4.1", + "react": "^18.3.1", + "react-dom": "^18.3.1", "react-test-renderer": "^16" }, "publishConfig": { @@ -42,6 +42,6 @@ "url": "https://github.com/alibaba/lowcode-engine/tree/main/packages/react-renderer" }, "homepage": "https://github.com/alibaba/lowcode-engine/#readme", - "gitHead": "2669f179e6f899d395ce1942d0fe04f9c5ed48a6", + "gitHead": "dfae21624347cbaaa4c265bf625e56a2bdf2635c", "bugs": "https://github.com/alibaba/lowcode-engine/issues" } diff --git a/packages/react-simulator-renderer/package.json b/packages/react-simulator-renderer/package.json index 3c3950a124..c8034cf6f0 100644 --- a/packages/react-simulator-renderer/package.json +++ b/packages/react-simulator-renderer/package.json @@ -1,6 +1,6 @@ { - "name": "@alilc/lowcode-react-simulator-renderer", - "version": "1.3.2", + "name": "@milo_j/lowcode-react-simulator-renderer", + "version": "1.3.8", "description": "react simulator renderer for alibaba lowcode designer", "main": "lib/index.js", "module": "es/index.js", @@ -12,27 +12,27 @@ ], "scripts": { "test": "build-scripts test --config build.test.json", - "build": "NODE_OPTIONS=--max_old_space_size=8192 build-scripts build", + "build": "build-scripts build", "build:umd": "NODE_OPTIONS=--max_old_space_size=8192 build-scripts build --config build.umd.json", "test:cov": "build-scripts test --config build.test.json --jest-coverage" }, "dependencies": { - "@alilc/lowcode-designer": "1.3.2", - "@alilc/lowcode-react-renderer": "1.3.2", - "@alilc/lowcode-types": "1.3.2", - "@alilc/lowcode-utils": "1.3.2", + "@alilc/lowcode-designer": "1.3.5", + "@alilc/lowcode-react-renderer": "1.3.5", + "@alilc/lowcode-types": "1.3.5", + "@alilc/lowcode-utils": "1.3.5", "classnames": "^2.2.6", "mobx": "^6.3.0", "mobx-react": "^7.2.0", - "react": "^16", - "react-dom": "^16.7.0" + "react": "^18.3.1", + "react-dom": "^18.3.1" }, "devDependencies": { "@alib/build-scripts": "^0.1.18", "@types/classnames": "^2.2.7", "@types/node": "^13.7.1", - "@types/react": "^16", - "@types/react-dom": "^16", + "@types/react": "^18.3.12", + "@types/react-dom": "^18.3.1", "@types/react-router": "5.1.18" }, "publishConfig": { @@ -43,7 +43,7 @@ "type": "http", "url": "https://github.com/alibaba/lowcode-engine/tree/main/packages/react-simulator-renderer" }, - "gitHead": "2669f179e6f899d395ce1942d0fe04f9c5ed48a6", + "gitHead": "dfae21624347cbaaa4c265bf625e56a2bdf2635c", "bugs": "https://github.com/alibaba/lowcode-engine/issues", "homepage": "https://github.com/alibaba/lowcode-engine/#readme" } diff --git a/packages/renderer-core/package.json b/packages/renderer-core/package.json index 199eac1cac..7f48dada93 100644 --- a/packages/renderer-core/package.json +++ b/packages/renderer-core/package.json @@ -1,6 +1,6 @@ { - "name": "@alilc/lowcode-renderer-core", - "version": "1.3.2", + "name": "@milo_j/lowcode-renderer-core", + "version": "1.3.8", "description": "renderer core", "license": "MIT", "main": "lib/index.js", @@ -16,8 +16,8 @@ }, "dependencies": { "@alilc/lowcode-datasource-engine": "^1.0.0", - "@alilc/lowcode-types": "1.3.2", - "@alilc/lowcode-utils": "1.3.2", + "@alilc/lowcode-types": "1.3.5", + "@alilc/lowcode-utils": "1.3.5", "classnames": "^2.2.6", "debug": "^4.1.1", "fetch-jsonp": "^1.1.3", @@ -32,7 +32,7 @@ "devDependencies": { "@alib/build-scripts": "^0.1.18", "@alifd/next": "^1.26.0", - "@alilc/lowcode-designer": "1.3.2", + "@alilc/lowcode-designer": "1.3.5", "@babel/plugin-transform-typescript": "^7.16.8", "@testing-library/react": "^11.2.2", "@types/classnames": "^2.2.11", @@ -43,9 +43,9 @@ "@types/prop-types": "^15.7.3", "@types/react-is": "^17.0.3", "@types/react-test-renderer": "^17.0.1", - "jest": "^26.6.3", + "jest": "^29.7.0", "react-test-renderer": "^17.0.2", - "ts-jest": "^26.5.0" + "ts-jest": "^29.2.5" }, "publishConfig": { "access": "public", @@ -55,7 +55,7 @@ "type": "http", "url": "https://github.com/alibaba/lowcode-engine/tree/main/packages/renderer-core" }, - "gitHead": "2669f179e6f899d395ce1942d0fe04f9c5ed48a6", + "gitHead": "dfae21624347cbaaa4c265bf625e56a2bdf2635c", "bugs": "https://github.com/alibaba/lowcode-engine/issues", "homepage": "https://github.com/alibaba/lowcode-engine/#readme" } diff --git a/packages/shell/package.json b/packages/shell/package.json index c2b62e2270..3712a278c5 100644 --- a/packages/shell/package.json +++ b/packages/shell/package.json @@ -1,6 +1,6 @@ { - "name": "@alilc/lowcode-shell", - "version": "1.3.2", + "name": "@milo_j/lowcode-shell", + "version": "1.3.8", "description": "Shell Layer for AliLowCodeEngine", "main": "lib/index.js", "module": "es/index.js", @@ -13,17 +13,18 @@ }, "license": "MIT", "dependencies": { - "@alilc/lowcode-designer": "1.3.2", - "@alilc/lowcode-editor-core": "1.3.2", - "@alilc/lowcode-editor-skeleton": "1.3.2", - "@alilc/lowcode-types": "1.3.2", - "@alilc/lowcode-utils": "1.3.2", - "@alilc/lowcode-workspace": "1.3.2", + "@alifd/next": "1.26.37", + "@alilc/lowcode-designer": "1.3.5", + "@alilc/lowcode-editor-core": "1.3.5", + "@alilc/lowcode-editor-skeleton": "1.3.5", + "@alilc/lowcode-types": "1.3.5", + "@alilc/lowcode-utils": "1.3.5", + "@alilc/lowcode-workspace": "1.3.5", "classnames": "^2.2.6", "enzyme": "^3.11.0", "enzyme-adapter-react-16": "^1.15.5", - "react": "^16", - "react-dom": "^16.7.0" + "react": "^18.3.1", + "react-dom": "^18.3.1" }, "devDependencies": { "@alib/build-scripts": "^0.1.29", @@ -33,8 +34,8 @@ "@types/lodash": "^4.14.165", "@types/medium-editor": "^5.0.3", "@types/node": "^13.7.1", - "@types/react": "^16", - "@types/react-dom": "^16", + "@types/react": "^18.3.12", + "@types/react-dom": "^18.3.1", "jest": "^26.6.3", "lodash": "^4.17.20", "moment": "^2.29.1", @@ -48,7 +49,7 @@ "type": "http", "url": "https://github.com/alibaba/lowcode-engine/tree/main/packages/shell" }, - "gitHead": "2669f179e6f899d395ce1942d0fe04f9c5ed48a6", + "gitHead": "dfae21624347cbaaa4c265bf625e56a2bdf2635c", "bugs": "https://github.com/alibaba/lowcode-engine/issues", "homepage": "https://github.com/alibaba/lowcode-engine/#readme" } diff --git a/packages/types/package.json b/packages/types/package.json index 5651d427d4..d6ac2ea328 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { - "name": "@alilc/lowcode-types", - "version": "1.3.2", + "name": "@milo_j/lowcode-types", + "version": "1.3.8", "description": "Types for Ali lowCode engine", "files": [ "es", @@ -13,13 +13,13 @@ }, "dependencies": { "@alilc/lowcode-datasource-types": "^1.0.0", - "react": "^16.9", + "react": "^18.3.1", "strict-event-emitter-types": "^2.0.0" }, "devDependencies": { "@alib/build-scripts": "^0.1.18", "@types/node": "^13.7.1", - "@types/react": "^16" + "@types/react": "^18.3.12" }, "publishConfig": { "access": "public", @@ -29,7 +29,7 @@ "type": "http", "url": "https://github.com/alibaba/lowcode-engine/tree/main/packages/types" }, - "gitHead": "2669f179e6f899d395ce1942d0fe04f9c5ed48a6", + "gitHead": "dfae21624347cbaaa4c265bf625e56a2bdf2635c", "bugs": "https://github.com/alibaba/lowcode-engine/issues", "homepage": "https://github.com/alibaba/lowcode-engine/#readme" } diff --git a/packages/utils/package.json b/packages/utils/package.json index 60605d81e7..c83bd3fca1 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { - "name": "@alilc/lowcode-utils", - "version": "1.3.2", + "name": "@milo_j/lowcode-utils", + "version": "1.3.8", "description": "Utils for Ali lowCode engine", "files": [ "lib", @@ -14,19 +14,19 @@ }, "dependencies": { "@alifd/next": "^1.19.16", - "@alilc/lowcode-types": "1.3.2", + "@alilc/lowcode-types": "1.3.5", "lodash": "^4.17.21", "mobx": "^6.3.0", "prop-types": "^15.8.1", - "react": "^16" + "react": "^18.3.1" }, "devDependencies": { "@alib/build-scripts": "^0.1.18", "@testing-library/jest-dom": "^6.1.4", "@testing-library/react": "^11.2.7", "@types/node": "^13.7.1", - "@types/react": "^16", - "react-dom": "^16.14.0" + "@types/react": "^18.3.12", + "react-dom": "^18.3.1" }, "publishConfig": { "access": "public", @@ -36,7 +36,7 @@ "type": "http", "url": "https://github.com/alibaba/lowcode-engine/tree/main/packages/utils" }, - "gitHead": "2669f179e6f899d395ce1942d0fe04f9c5ed48a6", + "gitHead": "dfae21624347cbaaa4c265bf625e56a2bdf2635c", "bugs": "https://github.com/alibaba/lowcode-engine/issues", "homepage": "https://github.com/alibaba/lowcode-engine/#readme" } diff --git a/packages/workspace/package.json b/packages/workspace/package.json index 778b8167f8..b4d7b59ae4 100644 --- a/packages/workspace/package.json +++ b/packages/workspace/package.json @@ -1,6 +1,6 @@ { - "name": "@alilc/lowcode-workspace", - "version": "1.3.2", + "name": "@milo_j/lowcode-workspace", + "version": "1.3.8", "description": "Shell Layer for AliLowCodeEngine", "main": "lib/index.js", "module": "es/index.js", @@ -15,16 +15,16 @@ }, "license": "MIT", "dependencies": { - "@alilc/lowcode-designer": "1.3.2", - "@alilc/lowcode-editor-core": "1.3.2", - "@alilc/lowcode-editor-skeleton": "1.3.2", - "@alilc/lowcode-types": "1.3.2", - "@alilc/lowcode-utils": "1.3.2", + "@alilc/lowcode-designer": "1.3.5", + "@alilc/lowcode-editor-core": "1.3.5", + "@alilc/lowcode-editor-skeleton": "1.3.5", + "@alilc/lowcode-types": "1.3.5", + "@alilc/lowcode-utils": "1.3.5", "classnames": "^2.2.6", "enzyme": "^3.11.0", "enzyme-adapter-react-16": "^1.15.5", - "react": "^16", - "react-dom": "^16.7.0" + "react": "^18.3.1", + "react-dom": "^18.3.1" }, "devDependencies": { "@alib/build-scripts": "^0.1.29", @@ -34,8 +34,8 @@ "@types/lodash": "^4.14.165", "@types/medium-editor": "^5.0.3", "@types/node": "^13.7.1", - "@types/react": "^16", - "@types/react-dom": "^16", + "@types/react": "^18.3.12", + "@types/react-dom": "^18.3.1", "jest": "^26.6.3", "lodash": "^4.17.20", "moment": "^2.29.1", @@ -49,7 +49,7 @@ "type": "http", "url": "https://github.com/alibaba/lowcode-engine/tree/main/packages/workspace" }, - "gitHead": "2669f179e6f899d395ce1942d0fe04f9c5ed48a6", + "gitHead": "dfae21624347cbaaa4c265bf625e56a2bdf2635c", "bugs": "https://github.com/alibaba/lowcode-engine/issues", "homepage": "https://github.com/alibaba/lowcode-engine/#readme" } diff --git a/scripts/setup.js b/scripts/setup.js index 77da2291f4..a41bb76c71 100644 --- a/scripts/setup.js +++ b/scripts/setup.js @@ -4,23 +4,65 @@ const del = require('del'); const gulp = require('gulp'); const execa = require('execa'); +// 删除根目录的锁文件 async function deleteRootDirLockFile() { - await del('package-lock.json'); - await del('yarn.lock'); + console.log('Deleting root lock files...'); + await del(['package-lock.json', 'yarn.lock']); } +// 清理子包的 `node_modules` async function clean() { + console.log('Cleaning packages...'); await execa.command('lerna clean -y', { stdio: 'inherit', encoding: 'utf-8' }); } +// 删除子包中的锁文件 async function deletePackagesDirLockFile() { + console.log('Deleting package lock files in packages...'); await del('packages/**/package-lock.json'); } -async function bootstrap() { - await execa.command('lerna bootstrap --force-local', { stdio: 'inherit', encoding: 'utf-8' }); +// 安装依赖并链接子包 +async function installDependencies() { + console.log('Installing dependencies...'); + const useYarn = await checkIfYarn(); + if (useYarn) { + await execa.command('yarn install', { stdio: 'inherit', encoding: 'utf-8' }); + } else { + await execa.command('npm install', { stdio: 'inherit', encoding: 'utf-8' }); + } } -const setup = gulp.series(deleteRootDirLockFile, clean, deletePackagesDirLockFile, bootstrap); +// 检查是否使用 Yarn +async function checkIfYarn() { + try { + await execa.command('yarn --version'); + return true; + } catch (e) { + return false; + } +} + +// 跨平台调用 setup 脚本或执行任务 +async function executeSetup() { + console.log('Setting up project...'); + if (os.type() === 'Windows_NT') { + // 执行 gulp 任务链 + const setup = gulp.series( + deleteRootDirLockFile, + clean, + deletePackagesDirLockFile, + installDependencies + ); + await setup(); + } else { + // 调用 Linux/Mac 专用脚本 + await execa.command('bash scripts/setup.sh', { stdio: 'inherit', encoding: 'utf-8' }); + } +} -os.type() === 'Windows_NT' ? setup() : execa.command('scripts/setup.sh', { stdio: 'inherit', encoding: 'utf-8' }); \ No newline at end of file +// 执行脚本 +executeSetup().catch((err) => { + console.error('Setup failed:', err); + process.exit(1); +});