1
1
/** export */
2
- import { version } from '../package.json' ;
2
+ import pkg from '../package.json' ;
3
3
import {
4
4
deepClone ,
5
5
GI_CONTAINER_METAS ,
@@ -13,6 +13,7 @@ import template from './constants/template';
13
13
import { useContext } from './context' ;
14
14
import GISDK from './GISDK' ;
15
15
import * as utils from './process' ;
16
+ const { version } = pkg ;
16
17
console . log ( `%c 🎉 GI_SDK_VERSION:${ version } ` , 'color:#3e5dff' ) ;
17
18
const extra = {
18
19
/** 原子组件 META */
@@ -25,12 +26,12 @@ const extra = {
25
26
deepClone,
26
27
GIAComponent,
27
28
} ;
28
- export { Info } from './constants/info' ;
29
29
export { Icon , icons } from '@antv/gi-common-components' ;
30
30
export { default as CollapseCard } from './components/CollapseCard' ;
31
31
export type { IGIAC } from './components/const' ;
32
32
export { default as EngineBanner } from './components/EngineBanner' ;
33
33
export { default as EngineServer } from './components/EngineServer' ;
34
+ export { Info } from './constants/info' ;
34
35
// export { default as Icon } from './components/Icon';
35
36
/** export typing */
36
37
export { COLORS , IEdgeSchema , INodeSchema } from './process/schema' ;
@@ -58,7 +59,6 @@ export type {
58
59
ISourceDataMap ,
59
60
ServiceObject ,
60
61
} from './typing' ;
61
- export { useContext , utils , version } ;
62
- export { extra , template } ;
62
+ export { extra , template , useContext , utils , version } ;
63
63
64
64
export default GISDK ;
0 commit comments