diff --git a/package.json b/package.json index 6e8ab8703..72ddd3ca6 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,8 @@ "start": "./scripts/start.sh", "test": "lerna run test --stream", "test:snapshot": "lerna run test:snapshot", - "watchdog:build": "node ./scripts/watchdog.js" + "watchdog:build": "node ./scripts/watchdog.js", + "sync": "./scripts/sync.sh" }, "husky": { "hooks": { diff --git a/packages/shell/src/simulator-host.ts b/packages/shell/src/simulator-host.ts index 7785fed92..d22336c3e 100644 --- a/packages/shell/src/simulator-host.ts +++ b/packages/shell/src/simulator-host.ts @@ -29,6 +29,10 @@ export default class SimulatorHost { return this[simulatorHostSymbol].contentDocument; } + get renderer() { + return this[simulatorHostSymbol].renderer; + } + /** * 设置 host 配置值 * @param key diff --git a/scripts/sync.sh b/scripts/sync.sh new file mode 100755 index 000000000..71ab5f5a1 --- /dev/null +++ b/scripts/sync.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +# sync all packages to alibaba intranet registry +tnpm sync @alilc/lowcode-types +tnpm sync @alilc/lowcode-utils +tnpm sync @alilc/lowcode-shell +tnpm sync @alilc/lowcode-editor-core +tnpm sync @alilc/lowcode-editor-skeleton +tnpm sync @alilc/lowcode-designer +tnpm sync @alilc/lowcode-plugin-designer +tnpm sync @alilc/lowcode-plugin-outline-pane +tnpm sync @alilc/lowcode-rax-renderer +tnpm sync @alilc/lowcode-rax-simulator-renderer +tnpm sync @alilc/lowcode-react-renderer +tnpm sync @alilc/lowcode-react-simulator-renderer +tnpm sync @alilc/lowcode-renderer-core +tnpm sync @alilc/lowcode-engine \ No newline at end of file