File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed
packages/ts-lib-tools/src/config Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -34,9 +34,7 @@ export function getAppPackageInfo(): Record<string, any> {
34
34
/**
35
35
* 项目版本号
36
36
*/
37
- export const getAppVersion = ( ) : string => {
38
- return getAppPackageInfo ( ) . version ;
39
- } ;
37
+ export const getAppVersion = ( ) : string => getAppPackageInfo ( ) . version ;
40
38
41
39
/**
42
40
* 解析模块的真实文件路径
@@ -111,13 +109,11 @@ export const getJestDOMModulePath = (): string | undefined => {
111
109
/**
112
110
* 库对应的全局名称
113
111
*/
114
- export const globals = ( ) : string => {
115
- return {
116
- react : 'React' ,
117
- 'react-native' : 'ReactNative' ,
118
- ...getAppPackageInfo ( ) . globals ,
119
- } ;
120
- } ;
112
+ export const globals = ( ) : string => ( {
113
+ react : 'React' ,
114
+ 'react-native' : 'ReactNative' ,
115
+ ...getAppPackageInfo ( ) . globals ,
116
+ } ) ;
121
117
122
118
/**
123
119
* 获取 mono 项目的根目录
You can’t perform that action at this time.
0 commit comments