diff --git a/framework-ts/yadan/index.ts b/framework-ts/yadan/index.ts index 2441802..5fed444 100644 --- a/framework-ts/yadan/index.ts +++ b/framework-ts/yadan/index.ts @@ -1,32 +1,13 @@ -import { - AgentWorkerLoader, - AppWorkerLoader, - BaseContextClass, - Controller as EggController, - Service, - Subscription, -} from 'egg' -// import * as egg from 'egg' +import * as egg from 'egg' import Agent from './lib/agent' import Application from './lib/application' import startCluster from './lib/cluster' -// export = { -// ...egg, -// Agent, -// Application, -// startCluster, -// } - -export { - startCluster, - Application, +const newEgg = { + ...egg, Agent, - AppWorkerLoader, - AgentWorkerLoader, - EggController as Controller, - Service, - Subscription, - BaseContextClass, + Application, + startCluster, } +export = newEgg