forked from alibaba/lowcode-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnpm.ts
More file actions
35 lines (34 loc) · 501 Bytes
/
npm.ts
File metadata and controls
35 lines (34 loc) · 501 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/**
* npm 源引入完整描述对象
*/
export interface NpmInfo {
/**
* 源码组件名称
*/
componentName?: string;
/**
* 源码组件库名
*/
package: string;
/**
* 源码组件版本号
*/
version?: string;
/**
* 是否解构
*/
destructuring?: boolean;
/**
* 源码组件名称
*/
exportName?: string;
/**
* 子组件名
*/
subName?: string;
/**
* 组件路径
*/
main?: string;
}
export type ComponentsMap = NpmInfo[];