From 2ab953db61b857fc1f350fba95d5d2b746594eab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8A=9B=E7=9A=93?= Date: Thu, 1 Apr 2021 13:46:05 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BF=AE=E5=A4=8D=20KeyType=20?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 - packages/types/src/editor.ts | 2 +- scripts/start-server.sh | 5 ----- 3 files changed, 1 insertion(+), 7 deletions(-) delete mode 100755 scripts/start-server.sh diff --git a/package.json b/package.json index aa19dcd94..401ceeccc 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,6 @@ "setup:skip-build": "./scripts/setup-skip-build.sh", "start": "./scripts/start.sh", "start:demo": "./scripts/start.sh @ali/lowcode-demo", - "start:server": "./scripts/start-server.sh", "test": "lerna run test --stream", "test:snapshot": "lerna run test:snapshot", "watchdog:build": "node ./scripts/watchdog.js", diff --git a/packages/types/src/editor.ts b/packages/types/src/editor.ts index ded6c790c..5d6cca2d7 100644 --- a/packages/types/src/editor.ts +++ b/packages/types/src/editor.ts @@ -3,7 +3,7 @@ import { ReactNode, ComponentType } from 'react'; import { NpmInfo } from './npm'; import { RegisterOptions } from 'power-di'; -export type KeyType = new (...args: any[]) => any | symbol | string; +export type KeyType = (new (...args: any[]) => any) | symbol | string; export type ClassType = new (...args: any[]) => any; export interface GetOptions { forceNew?: boolean; diff --git a/scripts/start-server.sh b/scripts/start-server.sh deleted file mode 100755 index a595843d1..000000000 --- a/scripts/start-server.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash - -# FIXME! do not run build -lerna exec --scope @ali/lowcode-code-generator -- npm run build -# lerna exec --scope @ali/lowcode-demo-server -- npm start